Super User is a question and answer site for computer enthusiasts and power users. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

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.

share|improve this question

migrated from Nov 23 '11 at 9:39

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

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.

share|improve this answer

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

share|improve this answer

You must log in to answer this question.