Take the 2-minute tour ×
Server Fault is a question and answer site for system and network administrators. It's 100% free, no registration required.

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.

1  
superuser.com/questions/106794/… –  quanta Aug 1 '11 at 2:33

1 Answer 1

up vote 4 down vote accepted

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

$ apt-cache policy gnucash
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
share|improve this answer

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