Updating Ubuntu 20.04 Server
I Am Running Ubuntu Server 20.04 on My Emby Server. and Periodically, I Log in via Ssh to Run "Sudo Apt Update" and "Sudo Apt Upgrade" to Keep My Os Patched. I...
I am running Ubuntu Server 20.04 on my Emby server. And periodically, I log in via SSH to run "sudo apt update" and "sudo apt upgrade" to keep my OS patched. I also periodically run "sudo apt autoremove" to remove obsolete components. But when I do the same thing on Ubuntu 20.04 workstation, then launch the "Software" app, it finds obsolete kernel files that it recommends be removed - and I allow it to do that. My question is - what is the command line equivalent to the function being performed the Ubuntu Software app? How do I tell Ubuntu server to find and remove obsolete kernels?
1 Answer
You can use special script named purge-old-kernels on any machine.
It is a part of byobu package.
Install it with:
sudo apt-get install byobu
and then run
sudo purge-old-kernels