In Aptitude, how can I tell where a package is coming from? I've set up my apt sources.list and preferences files for pinning, but I just want to make sure I'm not unknowingly upgrading to packages from backports or unstable.

closed as off topic by womble, Chopper3 Aug 1 '11 at 7:40

Questions on Server Fault are expected to relate to server, networking, or related infrastructure administration within the scope defined by the community. Consider editing the question or leaving comments for improvement if you believe the question can be reworded to fit within the scope. Read more about reopening questions here. If this question can be reworded to fit the rules in the help center, please edit the question.


apt-cache policy $packagename will tell you what you want to know. For example:

$ apt-cache policy gnucash
  Installed: 1:2.4.2-1ubuntu1
  Candidate: 1:2.4.2-1ubuntu1
  Version table:
 *** 1:2.4.2-1ubuntu1 0
        500 http://us.archive.ubuntu.com/ubuntu/ natty/universe i386 Packages
        100 /var/lib/dpkg/status

Not the answer you're looking for? Browse other questions tagged or ask your own question.