Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
Simple question: how do I list the description of packages
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index Portage & Programming
View previous topic :: View next topic  
Author Message
blais
n00b
n00b


Joined: 30 Jul 2003
Posts: 57

PostPosted: Mon Aug 21, 2006 7:11 pm    Post subject: Simple question: how do I list the description of packages Reply with quote

Been using gentoo for a few years. I still haven't got a nice solution for this simple query, other than cd'ing into the portage tree and cat'ing the ebuild files by hand and grepping. I'm annoyed.

I want to get the description of a list of packages, e.g.:

<some command> <package> [<package> ...]

- I don't want it to have to search, the package name is complete, it should be fast
- I want only a short one-liner description of what the package does.

Reading the man pages of portage, emerge, equery and others, there is nothing obvious that seem to be able to do that

- emerge --search won't accept a full package name,
- emerge --info does not include the description
- equery list does not include the description
- portageq does not seem able to get this
- I looked at the other tools, can't quite find what I need.

Basically, I often have lists of packages that I don't know about -- such as when you run emerge --depclean -- and I would just like to know what they do. I want it to be fast (i.e. faster than emerge --search, and given full package names I really don't see why it shouldn't be).

I am about to write a stupid little script that fetches it directly from the portage tree (which is probably going to take less time to write than this email), because I am very annoyed with this, but .... it seems to me that is the no.1 thing ahyone would want to do with a package name that is unknown to him, there just MUST already be something that does it, I can't believe it isn't already there; why does it need to be hidden? What is it?
Back to top
View user's profile Send private message
drwook
Veteran
Veteran


Joined: 30 Mar 2005
Posts: 1322
Location: London

PostPosted: Mon Aug 21, 2006 7:12 pm    Post subject: Reply with quote

eix ?
Back to top
View user's profile Send private message
blais
n00b
n00b


Joined: 30 Jul 2003
Posts: 57

PostPosted: Mon Aug 21, 2006 7:28 pm    Post subject: Nope, eix it is not. Reply with quote

No description from eix:

banane:~/p$ eix x11-apps/ttmkfdir
* x11-apps/ttmkfdir
Available versions: !3.0.9-r2 !3.0.9-r3
Installed: 3.0.9-r3
Homepage: SRC_URI=mirror://gentoo/ttmkfdir-3.0.9.tar.bz2
Description: RDEPEND=sys-libs/zlib >=media-libs/freetype-2.0.8


Verbose will not help much either:


banane:~/p$ eix -v x11-apps/ttmkfdir
* x11-apps/ttmkfdir
Available versions: !3.0.9-r2 !3.0.9-r3
Installed: 3.0.9-r3
Homepage: SRC_URI=mirror://gentoo/ttmkfdir-3.0.9.tar.bz2
Description: RDEPEND=sys-libs/zlib >=media-libs/freetype-2.0.8
Provides: CDEPEND=
License: KEYWORDS=alpha amd64 arm hppa ia64 m68k mips ppc ppc64 s390 sh sparc x86


I see that eix has formatting options that I may tweak to eventually extract the description from it.
Will I remember next time I need to use it? (no)
Will I disable the update-eix cron because when it'll kick in at midnight while I'll be hacking? (yes)

I want something simple. I don't want a cache. I don't want a formatting string. Just the description.

Besides, why isn't eix included with portage?
Isn't this need so basic and used all the time that it should be?
Or why isn't this just a feature of equery?

Don't take me wrong, I love gentoo, deeply, but sometimes I really just don't understand why some of the basic things have to be so convoluted.

(I'll post the script that I wrote between my post and your reply in a minute)
Back to top
View user's profile Send private message
blais
n00b
n00b


Joined: 30 Jul 2003
Posts: 57

PostPosted: Mon Aug 21, 2006 7:36 pm    Post subject: gentoo-desc Reply with quote

the script
http://furius.ca/pubcode/pub/conf/common/bin/gentoo-desc
Back to top
View user's profile Send private message
drwook
Veteran
Veteran


Joined: 30 Mar 2005
Posts: 1322
Location: London

PostPosted: Mon Aug 21, 2006 7:40 pm    Post subject: Reply with quote

eix -v x11-apps/ttmkfd
* x11-apps/ttmkfdir
Available versions: 3.0.9-r2 3.0.9-r3
Installed: none
Homepage: http://www.joerg-pommnitz.de/TrueType/xfsft.html
Description: A utility to create a fonts.scale file from a set of TrueType fonts
Provides: none
License: as-is

Not sure what you've done differently to me, but IIRC I haven't fiddled with anything so it should be stock...
Back to top
View user's profile Send private message
think4urs11
Bodhisattva
Bodhisattva


Joined: 25 Jun 2003
Posts: 6659
Location: above the cloud

PostPosted: Mon Aug 21, 2006 7:40 pm    Post subject: Re: Nope, eix it is not. Reply with quote

blais wrote:
No description from eix:


hmmmm
Code:
box etc # eix x11-apps/ttmkfdir
* x11-apps/ttmkfdir
     Available versions:  3.0.9-r2 3.0.9-r3
     Installed:           none
     Homepage:            http://www.joerg-pommnitz.de/TrueType/xfsft.html
     Description:         A utility to create a fonts.scale file from a set of TrueType fonts
box etc #

_________________
Nothing is secure / Security is always a trade-off with usability / Do not assume anything / Trust no-one, nothing / Paranoia is your friend / Think for yourself
Back to top
View user's profile Send private message
blais
n00b
n00b


Joined: 30 Jul 2003
Posts: 57

PostPosted: Mon Aug 21, 2006 7:49 pm    Post subject: no description from eix Reply with quote

well, see my output above... I'm not lying.

I've emerged to the latest and haven't fiddled with it either.
Will try removing and re-emerging.

Did that. Reemerging app-portage/eix-0.5.6 seems to have fixed the problem.

proteus:~$ sudo eix x11-apps/ttmkfdir
* x11-apps/ttmkfdir
Available versions: 3.0.9-r2 3.0.9-r3
Installed: 3.0.9-r3
Homepage: http://www.joerg-pommnitz.de/TrueType/xfsft.html
Description: A utility to create a fonts.scale file from a set of TrueType fonts
Back to top
View user's profile Send private message
maraudon
n00b
n00b


Joined: 19 Mar 2007
Posts: 3

PostPosted: Mon Mar 19, 2007 9:12 pm    Post subject: Reply with quote

what does eix mean ?
Back to top
View user's profile Send private message
mc_barron
Apprentice
Apprentice


Joined: 28 Aug 2003
Posts: 230
Location: Chicago, IL

PostPosted: Tue Mar 20, 2007 2:04 am    Post subject: Reply with quote

"eix" is a program:
Code:
yeti~ | emerge -s eix
Searching...   
[ Results for search key : eix ]
[ Applications found : 1 ]
 
*  app-portage/eix
      Latest version available: 0.8.8
      Latest version installed: [ Not Installed ]
      Size of files: 355 kB
      Homepage:      http://eix.sourceforge.net
      Description:   Small utility for searching ebuilds with indexing for fast results
      License:       GPL-2
Back to top
View user's profile Send private message
timeBandit
Bodhisattva
Bodhisattva


Joined: 31 Dec 2004
Posts: 2674
Location: here, there or in transit

PostPosted: Tue Mar 20, 2007 2:47 am    Post subject: Reply with quote

blais, you're right, there is already a way. Use the --format option of eix.
Code:
~ $ eix --format "<category>/<name>\n\t<description>" gcc.* | cut -c1-90
dev-ada/asis-gcc
        The Ada Semantic Interface Specification (semantic analysis and tools tied to compiler).
dev-cpp/gccxml
        XML output extension to GCC
dev-embedded/tigcc
        Cross compiler for Texas Instruments TI-89, TI-92(+) and V200 calculators
dev-lang/gnat-gcc
        GNAT Ada Compiler - gcc version
dev-lisp/cl-gcc-xml-ffi
        Cyrus Harmon's Common Lisp GCC-XML FFI library.
dev-util/colorgcc
        Adds color to gcc output
sys-devel/gcc
        The GNU Compiler Collection. Includes C/C++, java compilers, pie+ssp extensions, Haj Ten
sys-devel/gcc-config
        Utility to configure the active toolchain compiler
sys-devel/gcc-mips64
        Mips64 Kernel Compiler
sys-devel/gcc-nios2
        Compiler for Nios2 targets
sys-devel/gcc-powerpc64
        PPC64 Kernel Compiler (Experimental)
sys-devel/gcc-sparc64
        SPARC64 Kernel Compiler (Experimental)
sys-devel/kgcc64
        64bit kernel compiler
x11-misc/gccmakedep
        create dependencies in makefiles using 'gcc -M'
Found 14 matches.

You can do as I did: add something like this to ~/.bashrc:
Code:
alias ewhatis='eix --format "(yellow,1)<category>/<name>()\n\t<description>"'

...and delete your script. :wink:

Edit: Oof, thread necromancy. :roll: Well, maybe this will help someone else, if the OP is no longer around.
_________________
Plants are pithy, brooks tend to babble--I'm content to lie between them.
Super-short f.g.o checklist: Search first, strip comments, mark solved, help others.
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Portage & Programming All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum