On 08-Dec-2001 dman wrote: > On Sat, Dec 08, 2001 at 11:05:00AM -0800, Jeffrey W. Baker wrote: >| Is there a program to remove libraries which were pulled in by apt-get >| as prerequisites, but are no longer needed by anything? For example, my >| system has libgtkhtml17, 18, 19, and 20. The three former versions are >| not required by any installed package -- they just consume disk space. >| It would be neat if apt-get remembered what packages were pulled in as >| dependencies, and offered to remove them when they fall out of the >| dependency tree. > > deborphan reports what libs are not depended on by any packages. You > can then use that list to remove the ones you really don't want. > (just think, suppose I have no installed packages using libgtkhtml18, > but I am writing my own program using it -- I wouldn't want it > automatically removed, but I would like to know what stuff isn't being > used)
the --guess-all option is also handy as it will then also look for perl, pytho, ruby, etc packages you no longer need. deborphan combined with cruft (another package) can lead to a very clean system.