On 3/9/06, <b class="gmail_sendername">Jason OConnell</b> <<a href="mailto:jloconne@gmail.com">jloconne@gmail.com</a>> wrote:<div><span class="gmail_quote"></span><blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">
<div style="direction: ltr;">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?<br></div></blockquote></div>
<br>Jason,<br><br>I eagerly await a comprehensive answer.  <br><br>In the meantime, here is what I know:<br><br>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.  
<br><br>synaptic gives you the same information, formatted differently, if you look at the Properties of an individual package.<br><br>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.
<br><br>apt-cache showpkg <pkg> also gives information.<br><br>For instance, I use a different repository for wine to get a newer version, so apt-cache showpkg wine gives me (in part):<br><br>$ apt-cache showpkg wine
<br>Package: wine<br>Versions:<br>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)<br>0.0.20050725-0ubuntu1.1(/var/lib/apt/lists/security.ubuntu.com_ubuntu_dists_breezy-security_universe_binary-i386_Packages)
<br>0.0.20050725-0ubuntu1(/var/lib/apt/lists/us.archive.ubuntu.com_ubuntu_dists_breezy_universe_binary-i386_Packages)<br><br>The Versions: section shows I got 0.9.9 from <a href="http://wine.sourceforge.net">wine.sourceforge.net
</a>.<br><br clear="all"><br>-- <br>John DeCarlo, My Views Are My Own