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.

link|improve this question
1  
feedback

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

Questions on Server Fault are expected to generally relate to servers, networking, or desktop infrastructure, within the scope defined in the faq.

1 Answer

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
link|improve this answer
feedback

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