Is there is a command to delete older kernel in an Ubuntu Linux 18.04 server? I see so many kernel installed in my server at AWS EC2. How to tell Ubuntu Linux to delete older kernels?
The procedure to delete older kernel in Ubuntu is pretty simple:
- Login to your server
sudo apt --purge autoremoveto delete and purge all outdated and older Ubuntu Linux kernels.
- Reboot the server if new Ubuntu Linux kernel was installed by running
- Verify by running either
sudo dpkg --list | egrep -i --color 'linux-image|linux-headers
For more info see my page