Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 21708 - Easier way to see package description
Summary: Easier way to see package description
Status: RESOLVED FIXED
Alias: None
Product: Portage Development
Classification: Unclassified
Component: Enhancement/Feature Requests (show other bugs)
Hardware: All Linux
: High normal (vote)
Assignee: Nicholas Jones (RETIRED)
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2003-05-26 08:58 UTC by Mathy Vanvoorden
Modified: 2011-10-30 22:35 UTC (History)
0 users

See Also:
Package list:
Runtime testing required: ---


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Mathy Vanvoorden 2003-05-26 08:58:16 UTC
Right now, the only way to see the package description/url is through emerge -s (I think), which'll 
actually take a long time sometimes, however, wouldn't it be able to implement an option that'll only 
give the information of exactly the package you request. For example, emerge -s xmms gives me a 
laundry list full of packages containing xmms in their name, where I need to search for xmms in it, 
while I only need the URL for xmms itself.

An example (if -w where to be the option I suggest):
# emerge -w xmms
*  media-sound/xmms
      Latest version available: 1.2.7-r20
      Latest version installed: 1.2.7-r20
      Size of downloaded files: 2,808 kB
      Homepage:    http://www.xmms.org/
      Description: X MultiMedia System
#

And that would be it :-)
I'm sorry if this allready been suggested or discussed, or if this is a dup, but I couldn't find anything 
about it.
Comment 1 Mr. Bones. (RETIRED) gentoo-dev 2003-05-26 20:27:17 UTC
You might be interested in epm.

Specifically, epm -qi xmms might give you enough information (not in this
particular case, but in general).
Comment 2 Aron Griffis (RETIRED) gentoo-dev 2003-05-26 21:43:36 UTC
Michael sent me a patch offline for epm to make it show the URL when called with -qi.  This is now in the portage tree as 0.8.4.  For example,

$ epm -qi epm
Name        : epm
Version     : 0.8.4
Release     :                                     Slot: 0
Install date: Mon May 26 21:37:30 2003      Build Host: i686-pc-linux-gnu
Group       : sys-apps                         License: GPL-2
Size        : TBD
Packager    : agriffis
URL         : http://www.gentoo.org/~agriffis/epm/
Description : 
rpm workalike for Gentoo Linux

This script provides a good way to do this kind of query for installed packages, but it has two drawbacks: 1. It only works for installed packages, not for packages in the portage hierarchy (emerge -s works for packages in the hierarchy); 2. It's not an official part of portage, and I never plan to support it seriously enough to warrant including it with portage.  For the most part it duplicates functionality found in the base portage toolset anyway.

Nick might be able to tell us if there's another tool that would be more appropriate than epm for general package querying.  I don't know what functionality qpkg has since I usually use epm.
Comment 3 Mathy Vanvoorden 2003-05-27 03:11:28 UTC
It would be nice if emerge could handle this :-)
And it's mostly of not yet installed packages that I want the URL or info so I can find out a bit more about it, so epm is not really an option. I had a look at qpkg. qpkg -i xmms also gives me a whole list, and takes a lot longer than emerge to display it. qpkg -i media-sound/xmms is faster and less output, but doesn't really work, since I don't always know which category a package belongs too.
Comment 4 Marius Mauch (RETIRED) gentoo-dev 2003-09-21 10:11:48 UTC
grep -h DESCRIPTION /usr/portage/media-sound/xmms/*.ebuild|uniq
grep -h HOMEPAGE /usr/portage/media-sound/xmms/*.ebuild|uniq
Comment 5 Marius Mauch (RETIRED) gentoo-dev 2003-10-11 01:25:40 UTC
emerge -s also supports regular expressions, so if you only want info about
xmms use

emerge -s ^xmms$

And -s isn't that slow nowadays (most of the time is spent in python/portage
initialization), so I close this.