Gentoo Archives: gentoo-user

From: Alan McKinnon <alan.mckinnon@×××××.com>
To: gentoo-user@l.g.o
Cc: Peter Humphrey <peter@××××××××××××××.org>
Subject: Re: [gentoo-user] Re: commands to show where a package is installed?
Date: Mon, 12 Oct 2009 10:14:53
Message-Id: 200910121213.15309.alan.mckinnon@gmail.com
In Reply to: Re: [gentoo-user] Re: commands to show where a package is installed? by Peter Humphrey
1 On Monday 12 October 2009 11:11:06 Peter Humphrey wrote:
2 > On Sunday 11 October 2009 22:23:11 Alan McKinnon wrote:
3 > > > I knew how to do it but I thought it would return a lot of hits from
4 > > > anything containing the letter "q". Later on when I had a little bit
5 > > > of time to sit here, I tried it. It only returned the one result.
6 > > > Still sort of surprised about that. I actually just ran equery b q .
7 > > > Neato ! It has a microscope and read my mind. o_O
8 > >
9 > > which doesn't accept regular expressions or wild-cards, it wants a
10 > > literal value. The man page says it will return the path used if the
11 > > exact argument is entered on the command line. So you can only get one
12 > > answer
13 >
14 > Interesting. I tried it just out of interest and I got two:
15 >
16 > $ equery b q
17 > [ Searching for file(s) q in *... ]
18 > app-portage/portage-utils-0.1.29 (/usr/bin/q)
19 > sys-libs/ncurses-5.6-r2 (/usr/share/terminfo/q)
20
21 There's always someone willing to go look and find the exceptions :-)
22
23 So your box just happens to have *two* files named "q" "-)
24
25
26 --
27 alan dot mckinnon at gmail dot com