[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Re: Howto find and remove unused libraries?



fraz wrote:
How can I find libraries etc that were installed as dependencies, but which currently have no "dependants" installed? IE the package that caused apt to install them isn't installed anymore.

I've been apt-getting and removing packages on my system for the last 4 years. And I suspect there is a lot of unused crud. For future reference is there a better way to remove packages so the unused dependencies are also removed? Is "dpkg -P" equivalent to "apt-get remove"?

Thanks,
fraz


Hi,

quite easy one ;-)

# apt-get install deborphan
# man deborphan
# deborphan

I tend to use:
# apt-get -s remove $(deborphan)
and if I'm happy with the result:
# apt-get --purge remove $(deborphan)

Hope this helps,
Eric



Reply to: