Installed packages sometimes become obsolete because the package got version bumped and the ebuild for the old version got dropped. Also it happens that packages are dropped completely from the tree (usually for a good reason). I'd like to query those packages in order to take the appropriate action (update, remove).

How to query installed packages that

  1. have no ebuild for the current installed version; and
  2. have no ebuild at all anymore (e.g. because it got deleted)

For this you can use eix-test-obsolete from app-portage/eix. eix-test-obsolete is set of few tests to check is package is obsolete.

I output packages are grouped by specific test. One of them is "Installed packages with a version not in the database (or masked)". Description of all of them you can find in man eix.

|improve this answer|||||
  • Thanks for your answer. eix-test-obsolete is a great tool, but I think what I really want are the eix parameters that lists all packages that fall into 1. or 2. – Flow Dec 7 '12 at 17:30
  • I don't know if you can be that specific. You can also check TEST_ and NONEXISTENT_IF_ variables in man eix. – pbm Dec 7 '12 at 17:37
  • Of course, any other tool besides eix that does the job is also ok. – Flow Dec 7 '12 at 17:37

The best answer that came up so far is



It shows a little bit more then I asked for, but it's a good starting point.

|improve this answer|||||

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

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