Server Fault is a question and answer site for system and network administrators. It's 100% free, no registration required.

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

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.

share|improve this question

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.

up vote 4 down vote accepted

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 natty/universe i386 Packages
        100 /var/lib/dpkg/status
share|improve this answer

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