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 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

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
1

Your Answer

Sign up or log in

Sign up using Google Sign up using Facebook Sign up using Email and Password

Post as a guest

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

You Might Also Like