Site Tools


start:orphanedcleanup

This is an old revision of the document!


On testing it is possible a package is removed that you have installed, due to some issue with the package or that is is abandoned. For this reason it is a good idea to every now and again check that the packages on your system have not become orphaned and you still have a pretty clean system.

Its also worthwhile checking if any recommended packages are missing from time to time. Its essentially just checking that what your system has is logical and will be kept up to date by apt. By doing this you will reduce the amount of problems you have as well as avoid having to reinstall your OS clean because you are auditing it and keeping it under control.

The first thing I like to do is ensure I have cleaned up any unneeded packages apt detects itself:

sudo apt-get autoremove

That is safe to do as apt is detecting what it needs and removes what it does not. However you should always read what it wants to remove and check you agree its logical.

Next thing I like to do is check if there were any recommended packages that I needed but did not get installed:

sudo apt-get install aptitude
sudo aptitude search '~RBrecommends:~i'

Aptitude can search for packages you have installed and then what packages they recommended you install. I dont suggest you install any or all of them, instead look to see fi there are any useful packages you would benefit from. Here is my list:

start/orphanedcleanup.1652809398.txt.gz · Last modified: 2022/05/17 17:43 by peter