Advertisement
Guest User

Untitled

a guest
Jun 6th, 2022
113
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.65 KB | None | 0 0
  1. from here: https://www.linux.org/threads/solved-how-to-remove-old-kernels-in-kubuntu-20-04-kde.36151/?__cf_chl_f_tk=0CshtAQX9mOyYFgwlXwGqSaQg2c80WYKrnIzGqR5z.Q-1654529053-0-gaNycGzNBf0
  2.  
  3. after running the command to purge old kernels the recommendation is to run these commands
  4.  
  5.  
  6. dpkg --list |grep "^rc"
  7. dpkg --list |grep "^rc" |cut -d " " -f3
  8. dpkg --list |grep "^rc" |cut -d " " -f3 |xargs sudo dpkg --purge
  9. sudo update-grub
  10. sudo update-initramfs -u
  11.  
  12. reboot and when it boots back up run
  13. step 1 again to verify kernels were removed and
  14.  
  15. Code:
  16.  
  17. uname -r
  18.  
  19. to see what is currently running
  20. just do not remove the kernel you are currently using
  21.  
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement