Determining which component a package came from

John DeCarlo johndecarlo at gmail.com
Thu Mar 9 20:34:11 UTC 2006


On 3/9/06, 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?
>

Jason,

I eagerly await a comprehensive answer.

In the meantime, here is what I know:

apt-cache show <package-name> will return lots of information.  One line
begins with Section: and will have a value like universe/games or possibly
just admin.  If it says universe/ or restricted/ or multiverse/, that gives
you a clue.  If it says nothing but a category like games, it is most likely
main.

synaptic gives you the same information, formatted differently, if you look
at the Properties of an individual package.

I got confused the other day because something appeared to be in main using
this method.  But it was really in main in a different repository.

apt-cache showpkg <pkg> also gives information.

For instance, I use a different repository for wine to get a newer version,
so apt-cache showpkg wine gives me (in part):

$ apt-cache showpkg wine
Package: wine
Versions:
0.9.9-winehq-1
(/var/lib/apt/lists/wine.sourceforge.net_apt_binary_Packages)(/var/lib/apt/lists/wine.sourceforge.net_apt_breezy_Packages)(/var/lib/dpkg/status)
0.0.20050725-0ubuntu1.1
(/var/lib/apt/lists/security.ubuntu.com_ubuntu_dists_breezy-security_universe_binary-i386_Packages)
0.0.20050725-0ubuntu1
(/var/lib/apt/lists/us.archive.ubuntu.com_ubuntu_dists_breezy_universe_binary-i386_Packages)

The Versions: section shows I got 0.9.9 from wine.sourceforge.net.


--
John DeCarlo, My Views Are My Own
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.ubuntu.com/archives/ubuntu-users/attachments/20060309/087ab2b6/attachment.html>


More information about the ubuntu-users mailing list