Determining which component a package came from

Peter Garrett peter.garrett at optusnet.com.au
Thu Mar 9 20:33:18 UTC 2006


On Thu, 9 Mar 2006 14:05:09 -0600
"Jason OConnell" <jloconne at gmail.com> wrote:

> How can you tell if a package came from 'main', 'restricted', 'universe', or
> 'multiverse' , or better yet, show me all packages that came from that
> paticular component?

apt-cache policy <packagename>   will show the origin of the package.

For instance,

apt-cache policy totem-xine
totem-xine:
  Installed: 1.2.0-0ubuntu3
  Candidate: 1.2.0-0ubuntu3
  Version table:
 *** 1.2.0-0ubuntu3 0
        500 http://au.archive.ubuntu.com breezy/universe Packages
        100 /var/lib/dpkg/status

I don't know how you list all packages from a particular component, though.

Peter




More information about the ubuntu-users mailing list