2

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.

PBJ
  • 123
  • 3
  • 1
    http://superuser.com/questions/106794/how-to-tell-from-what-ubuntu-or-debian-repository-a-package-comes – quanta Aug 01 '11 at 02:33

1 Answers1

4

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
jldugger
  • 14,342
  • 20
  • 77
  • 129