Debian Package Management – Find Installed Packages with No Install Candidate

aptaptitudedebianpackage-management

I'd like to retrieve a list of installed packages that have no install candidate (e.g., because I removed an apt source file entry). How would I do that on Debian-based systems?

Best Answer

With Aptitude, search for the ?obsolete pattern, possibly with a custom display format.

aptitude -F '%p' search '?obsolete'