Take the 2-minute tour ×
Unix & Linux Stack Exchange is a question and answer site for users of Linux, FreeBSD and other Un*x-like operating systems.. It's 100% free, no registration required.

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)
share|improve this question
add comment

2 Answers

up vote 1 down vote accepted

The best answer that came up so far is

TEST_FOR_REDUNDANCY=false eix -T

source

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

share|improve this answer
add comment

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.

share|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
add comment

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.