How To Clean Unused Packages with Apt Autoremove?
Linux distributions uses package managers in order to install new software.
apt is one of the most popular package management tool. Over time installed packages will be hold in the operating system. This is will create some overhead for disk usage. In this tutorial we will look to to remove this cached and unused packages.
Use apt autoremove
We will use
apt autoremove which will automatically find package those are unused by other packages and not needed. The this packages will be removed. Generally alder versions of the kernel will be removed with this process.
$ sudo apt autoremove
Alternatively we can use following
apt-get version of the package manager.
$ sudo apt-get autoremove