Advertisement
0x2264773426

Remove old kernel and its dependencies in Fedora (Terminal):

Mar 12th, 2023 (edited)
42
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.80 KB | None | 0 0
  1. First checkout how many kernels are installed in your system:
  2. dnf history userinstalled
  3.  
  4. Then uninstall the old or outdated kernel if there is no use of that, to remove the old kernels use these commands below:
  5.  
  6. sudo dnf autoremove kernel-core-VERSION.FEDORA_CORE_VERSION.ARCHITECHTURE_VERSION
  7. e.g.: sudo dnf autoremove kernel-core-6.1.15-200.fc37.x86_64
  8.  
  9. sudo dnf autoremove kernel-VERSION.FEDORA_CORE_VERSION.ARCHITECHTURE_VERSION
  10. e.g.: sudo dnf autoremove kernel-6.1.15-200.fc37.x86_64
  11.  
  12. sudo dnf autoremove kernel-modules-VERSION.FEDORA_CORE_VERSION.ARCHITECHTURE_VERSION
  13. e.g.: sudo dnf autoremove kernel-modules-6.1.15-200.fc37.x86_64
  14.  
  15. sudo dnf autoremove kernel-modules-extra-VERSION.FEDORA_CORE_VERSION.ARCHITECHTURE_VERSION
  16. e.g.: sudo dnf autoremove kernel-modules-extra-6.1.15-200.fc37.x86_64
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement