I'm trying to figure out a way to get a list of the packages that are no longer available in the repositories that I have enabled. This workstation has been through quite a few versions of Ubuntu and has had many 3rd party repositories added and removed. I'd like to get a list of software that I have from these removed repositories, so I can clean it up or add back the appropriate repositories.
migrated from serverfault.com Jan 24 '12 at 19:43
Aptitude has some very powerful searching available. Unfortunately the syntax is a bit unwieldy and you have to dig past the manpage to find the documentation, but its worth it. apt-show-versions can also be helpful:
|
||||
|
|
|
I would not try any of both advices here. As far as I know there is a slight difference in meaning between "no available version" "not installed" and, what the question is about, "obsolete". For example: a package compiled from source will be happily indicated as "no available version" or even "not installed" depending on if there's a PPA available. But of course this doesn't necessarily mean that the package is "obsolete". FYI: even aptitude makes this mistake. Determining if something is obsolete still remains a matter of knowing what you're doing. |
|||
|
|
|
There may be a cleaner way, but off the top of my head you can do
Cleanup the first few lines of the Bonus if anyone can fix my syntax highlighting... |
|||||||||
|