How would I trace out which archive(s) in the sources.list a given installed deb package was or (could be) sourced from? I understand that the same package may be indexed by multiple archives.

Does "aptitude" log any of this type of information when its installing packages?

My aim is to pare down my current sources.list to the minimum set of archives needed to maintain the current set of installed packages.

link|improve this question
feedback

migrated from stackoverflow.com Nov 23 '11 at 9:39

This question came from our site for professional and enthusiast programmers.

2 Answers

You can use apt-cache policy to find out where a package originated from. Combined with apt-cache pkgnames you should be able to find out which sources you are using.

link|improve this answer
feedback

In aptitude, select the binary package by hi lighting it then hitting ENTER, then look for the Source Package: line.

link|improve this answer
feedback

Your Answer

 
or
required, but never shown