Take the 2-minute tour ×
Super User is a question and answer site for computer enthusiasts and power users. It's 100% free, no registration required.

Is it possible to get a list of "orphaned" lib packages from apt-get? That is, libs that, for some reason remained after the package(s) that required them were uninstalled.

I realize that, in general those libs are disposed of along with the main package, but I have run into a few examples of orphaned packages so I am curious if apt-get has the ability to tell me about any more.

share|improve this question

1 Answer 1

up vote 2 down vote accepted

Install deborphan and check the orphaner(8) utility.


$ apt-cache show deborphan
Package: deborphan
Status: install ok installed
Priority: optional
Section: admin
Installed-Size: 500
Maintainer: deborphan devel team 
Architecture: amd64
Version: 1.7.28.8
Depends: libc6 (>= 2.7)
Recommends: apt, dialog, gettext-base
Conffiles:
 /etc/bash_completion.d/deborphan e8190ae92bb2f343c2d87f9eb2cf9f0a
Description: program that can find unused packages, e.g. libraries
 deborphan finds "orphaned" packages on your system. It determines which
 packages have no other packages depending on their installation and shows
 you a list of these packages. It is most useful when finding libraries,
 but it can be used on packages in all sections.
 .
 This package also includes orphaner, a text menu frontend to deborphan.
 Please install the recommended packages dialog, gettext-base and apt when
 you want a working and fully featured orphaner.

If launched without arguments, it will display a curses interface showing orphaned packages. You can dry-run a test or perform a purge of those packages.

share|improve this answer
    
Beautiful. That is exactly what I need. Thank you. –  aserwin May 5 '13 at 17:34

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.