How to get rid of an uninstalled program's now-unneeded/un-used dependencies

Stephen R Laniel steve at laniels.org
Fri Jul 15 14:10:08 UTC 2005


On Fri, Jul 15, 2005 at 11:05:58PM +0900, Jeff Co wrote:
> with the now-unused dependencies? These dependencies were installed for
> ProgramABC, but now that ProgramABC has been removed, these dependencies are
> not being used, not being used by any program.  What do you guys do? Do you
> guys take notes of the dependencies each installed program needs?

Try the deborphan package:

deborphan - Find orphaned libraries

After you've installed it, you can then do

sudo apt-get remove `deborphan`

This will remove any libraries that nothing depends on.
Running this command once will now leave some libraries that
nothing depends on, so you can run the command again. Repeat
until there are no programs to remove.

I'm told that aptitude automatically removes orphaned
programs, but I've not delved into aptitude.

-- 
Stephen R. Laniel
steve at laniels.org
+(617) 308-5571
http://laniels.org/
PGP key: http://laniels.org/slaniel.key
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 189 bytes
Desc: Digital signature
URL: <https://lists.ubuntu.com/archives/ubuntu-users/attachments/20050715/c8f2b79b/attachment.sig>


More information about the ubuntu-users mailing list