how-to-remove-old-linux-kernels-ubuntu

15y, 21d ago [edited]

how to remove old linux kernels ubuntu

Warning if you remove your running kernel you will be in trouble.

cd /boot

# determine running kernel
uname -r

# delete old kernels but leave the most recent three as a backup
# example: sudo apt-get remove --purge linux-image-x.x.xx-xx-server
sudo apt-get remove --purge linux-image-2.6.32-3[012]-server

Good luck and be careful

list all software installed

dpkg --list | less

Comments

We'll email a 6-digit code to verify your comment and notify you of replies.

hide preview ▲show preview ▼
Leave first comment to start a conversation!