Take the 2-minute tour ×
Super User is a question and answer site for computer enthusiasts and power users. It's 100% free, no registration required.

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 stackoverflow.com Nov 23 '11 at 9:39

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

2 Answers 2

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

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.