Re: [gentoo-user] Re: commands to show where a package is installed?

2009-10-12 Thread Frank Steinmetzger
Am Montag, 12. Oktober 2009 schrieb Dale:

> > Interesting. I tried it just out of interest and I got two:
> >
> > $ equery b q
> > [ Searching for file(s) q in *... ]
> > app-portage/portage-utils-0.1.29 (/usr/bin/q)
> > sys-libs/ncurses-5.6-r2 (/usr/share/terminfo/q)
> > $
>
> Hmmm, two apparently different commands with the same name.  I thought
> that wasn't supposed to happen?
>
> Dale

Relax, it's just a directory.
-- 
Gruß | Greetings | Qapla'
Killing for peace is like fucking for virginity.


signature.asc
Description: This is a digitally signed message part.


Re: [gentoo-user] Re: commands to show where a package is installed?

2009-10-12 Thread Dale
Peter Humphrey wrote:
> On Sunday 11 October 2009 22:23:11 Alan McKinnon wrote:
>
>   
>>> I knew how to do it but I thought it would return a lot of hits from
>>> anything containing the letter "q".  Later on when I had a little bit of
>>> time to sit here, I tried it.  It only returned the one result.  Still
>>> sort of surprised about that.  I actually just ran equery b q .  Neato
>>> !  It has a microscope and read my mind.  o_O
>>>   
>> which doesn't accept regular expressions or wild-cards, it wants a literal
>> value. The man page says it will return the path used if the exact argument
>> is entered on the command line. So you can only get one answer
>> 
>
> Interesting. I tried it just out of interest and I got two:
>
> $ equery b q
> [ Searching for file(s) q in *... ]
> app-portage/portage-utils-0.1.29 (/usr/bin/q)
> sys-libs/ncurses-5.6-r2 (/usr/share/terminfo/q)
> $
>
>   

Hmmm, two apparently different commands with the same name.  I thought
that wasn't supposed to happen?

Dale

:-) :-) 



Re: [gentoo-user] Re: commands to show where a package is installed?

2009-10-12 Thread Alan McKinnon
On Monday 12 October 2009 11:11:06 Peter Humphrey wrote:
> On Sunday 11 October 2009 22:23:11 Alan McKinnon wrote:
> > > I knew how to do it but I thought it would return a lot of hits from
> > > anything containing the letter "q".  Later on when I had a little bit
> > > of time to sit here, I tried it.  It only returned the one result. 
> > > Still sort of surprised about that.  I actually just ran equery b q . 
> > > Neato !  It has a microscope and read my mind.  o_O
> >
> > which doesn't accept regular expressions or wild-cards, it wants a
> > literal value. The man page says it will return the path used if the
> > exact argument is entered on the command line. So you can only get one
> > answer
> 
> Interesting. I tried it just out of interest and I got two:
> 
> $ equery b q
> [ Searching for file(s) q in *... ]
> app-portage/portage-utils-0.1.29 (/usr/bin/q)
> sys-libs/ncurses-5.6-r2 (/usr/share/terminfo/q)

There's always someone willing to go look and find the exceptions :-)

So your box just happens to have *two* files named "q" "-)


-- 
alan dot mckinnon at gmail dot com



Re: [gentoo-user] Re: commands to show where a package is installed?

2009-10-12 Thread Peter Humphrey
On Sunday 11 October 2009 22:23:11 Alan McKinnon wrote:

> > I knew how to do it but I thought it would return a lot of hits from
> > anything containing the letter "q".  Later on when I had a little bit of
> > time to sit here, I tried it.  It only returned the one result.  Still
> > sort of surprised about that.  I actually just ran equery b q .  Neato
> > !  It has a microscope and read my mind.  o_O
>
> which doesn't accept regular expressions or wild-cards, it wants a literal
> value. The man page says it will return the path used if the exact argument
> is entered on the command line. So you can only get one answer

Interesting. I tried it just out of interest and I got two:

$ equery b q
[ Searching for file(s) q in *... ]
app-portage/portage-utils-0.1.29 (/usr/bin/q)
sys-libs/ncurses-5.6-r2 (/usr/share/terminfo/q)
$

-- 
Rgds
Peter



Re: [gentoo-user] Re: commands to show where a package is installed?

2009-10-11 Thread Dale
Alan McKinnon wrote:
> On Sunday 11 October 2009 19:29:19 Dale wrote:
>   
>>> equery belongs $(which q)
>>>
>>> ;)
>>>
>>> -James
>>>
>>>  
>>>
>>>
>>> Dale
>>>
>>> :-)  :-)
>>>   
>> I knew how to do it but I thought it would return a lot of hits from
>> anything containing the letter "q".  Later on when I had a little bit of
>> time to sit here, I tried it.  It only returned the one result.  Still
>> sort of surprised about that.  I actually just ran equery b q .  Neato
>> !  It has a microscope and read my mind.  o_O
>> 
>
> which doesn't accept regular expressions or wild-cards, it wants a literal 
> value. The man page says it will return the path used if the exact argument 
> is 
> entered on the command line. So you can only get one answer
>
>   

It appears so.  I learned something today.  Just wonder how long it will
stay around in my brain. 

Dale

:-)  :-)



Re: [gentoo-user] Re: commands to show where a package is installed?

2009-10-11 Thread Alan McKinnon
On Sunday 11 October 2009 19:30:30 Albert Hopkins wrote:
> On Sun, 2009-10-11 at 09:25 -0700, James Ausmus wrote:
> > When you forget which package a command (or any random file) belongs
> > to, a
> > great way to figure it out would be:
> >
> > equery belongs $(which q)
> 
> Or use 'q' to find itself:
> 
> $ q file `which q`
> app-portage/portage-utils (/usr/bin/q)
> 

To amuse and delight your kids, have which find itself:

# which which
/usr/bin/which

-- 
alan dot mckinnon at gmail dot com



Re: [gentoo-user] Re: commands to show where a package is installed?

2009-10-11 Thread Alan McKinnon
On Sunday 11 October 2009 19:29:19 Dale wrote:
> > equery belongs $(which q)
> >
> > ;)
> >
> > -James
> >
> >  
> >
> >
> > Dale
> >
> > :-)  :-)
> 
> I knew how to do it but I thought it would return a lot of hits from
> anything containing the letter "q".  Later on when I had a little bit of
> time to sit here, I tried it.  It only returned the one result.  Still
> sort of surprised about that.  I actually just ran equery b q .  Neato
> !  It has a microscope and read my mind.  o_O

which doesn't accept regular expressions or wild-cards, it wants a literal 
value. The man page says it will return the path used if the exact argument is 
entered on the command line. So you can only get one answer

-- 
alan dot mckinnon at gmail dot com



Re: [gentoo-user] Re: commands to show where a package is installed?

2009-10-11 Thread Albert Hopkins
On Sun, 2009-10-11 at 09:25 -0700, James Ausmus wrote:
> When you forget which package a command (or any random file) belongs
> to, a
> great way to figure it out would be:
> 
> equery belongs $(which q) 

Or use 'q' to find itself:

$ q file `which q`
app-portage/portage-utils (/usr/bin/q)





Re: [gentoo-user] Re: commands to show where a package is installed?

2009-10-11 Thread Dale
James Ausmus wrote:
>
>
> On Sat, Oct 10, 2009 at 11:10 PM, Dale  > wrote:
>
> Jonathan Callen wrote:
> > Dale wrote:
> > > I would urge you to check into the "q" command and equery.  I
> !think!
> > > the "q" command is part of portage.  It may be part of
> gentoolkit tho.
> > > Just the "q" command has more than a dozen different things it
> does.
> > > equery can do a lot too but some say it has some "accuracy"
> problems at
> > > times.  It works for my little simple stuff tho.
> >
> > Actually, /usr/bin/q belongs to app-portage/portage-utils, not
> > app-portage/gentoolkit or sys-apps/portage. :)
> >
>
> Thanks.  I wasn't sure which package it belonged to.  I had forgot
> about
> portage-utils.  Still a good command for someone to look into tho.
>
>
>
> When you forget which package a command (or any random file) belongs
> to, a great way to figure it out would be:
>
> equery belongs $(which q)
>
> ;)
>
> -James
>
>  
>
>
> Dale
>
> :-)  :-)
>
>

I knew how to do it but I *thought* it would return a lot of hits from
anything containing the letter "q".  Later on when I had a little bit of
time to sit here, I tried it.  It only returned the one result.  Still
sort of surprised about that.  I actually just ran equery b q .  Neato
!  It has a microscope and read my mind.  o_O

Dale

:-)  :-) 





Re: [gentoo-user] Re: commands to show where a package is installed?

2009-10-11 Thread James Ausmus
On Sat, Oct 10, 2009 at 11:10 PM, Dale  wrote:

> Jonathan Callen wrote:
> > Dale wrote:
> > > I would urge you to check into the "q" command and equery.  I !think!
> > > the "q" command is part of portage.  It may be part of gentoolkit tho.
> > > Just the "q" command has more than a dozen different things it does.
> > > equery can do a lot too but some say it has some "accuracy" problems at
> > > times.  It works for my little simple stuff tho.
> >
> > Actually, /usr/bin/q belongs to app-portage/portage-utils, not
> > app-portage/gentoolkit or sys-apps/portage. :)
> >
>
> Thanks.  I wasn't sure which package it belonged to.  I had forgot about
> portage-utils.  Still a good command for someone to look into tho.
>


When you forget which package a command (or any random file) belongs to, a
great way to figure it out would be:

equery belongs $(which q)

;)

-James



>
> Dale
>
> :-)  :-)
>
>


Re: [gentoo-user] Re: commands to show where a package is installed?

2009-10-10 Thread Dale
Jonathan Callen wrote:
> Dale wrote:
> > I would urge you to check into the "q" command and equery.  I !think!
> > the "q" command is part of portage.  It may be part of gentoolkit tho.
> > Just the "q" command has more than a dozen different things it does.
> > equery can do a lot too but some say it has some "accuracy" problems at
> > times.  It works for my little simple stuff tho.
>
> Actually, /usr/bin/q belongs to app-portage/portage-utils, not
> app-portage/gentoolkit or sys-apps/portage. :)
>

Thanks.  I wasn't sure which package it belonged to.  I had forgot about
portage-utils.  Still a good command for someone to look into tho.

Dale

:-)  :-) 



[gentoo-user] Re: commands to show where a package is installed?

2009-10-10 Thread Jonathan Callen
-BEGIN PGP SIGNED MESSAGE-
Hash: SHA1

Dale wrote:
> I would urge you to check into the "q" command and equery.  I !think!
> the "q" command is part of portage.  It may be part of gentoolkit tho. 
> Just the "q" command has more than a dozen different things it does. 
> equery can do a lot too but some say it has some "accuracy" problems at
> times.  It works for my little simple stuff tho.

Actually, /usr/bin/q belongs to app-portage/portage-utils, not
app-portage/gentoolkit or sys-apps/portage. :)

- --
Jonathan
-BEGIN PGP SIGNATURE-
Version: GnuPG v2.0.11 (GNU/Linux)
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org

iEYEARECAAYFAkrQ8aMACgkQOypDUo0oQOr3GQCfaSxscToE74ml3QFMUHMMcFH0
7ZwAoLKlVdNJusziK+OYnjo+Pde1AO7W
=FBeM
-END PGP SIGNATURE-



[gentoo-user] Re: commands to show where a package is installed?

2009-10-09 Thread Harry Putnam
Dale  writes:

> Zhengquan Zhang wrote:
>> Hi, Gentoo users,
>> I am new to gentoo and am wondering if there is a command to show
>> where a package is installed? which file is installed in which
>> directory?
>>
>> Thanks a lot,
>>
>>   
>
> I'm not sure this is what you are talking about but this may help:
>
> equery files 
>
> emerge gentoolkit for that command.

Gack... sorry Dale ... somehow I didn't see that you had already
mentioned equery.




[gentoo-user] Re: commands to show where a package is installed?

2009-10-09 Thread Harry Putnam
Zhengquan Zhang  writes:

> 2009/10/9 Justin :
>> Zhengquan Zhang wrote:
>>> Hi, Gentoo users,
>>> I am new to gentoo and am wondering if there is a command to show
>>> where a package is installed? which file is installed in which
>>> directory?
>>>
>>> Thanks a lot,
>>>
>> emerge app-portage/portage-utils and go with "qlist package"
>
> Exactly, Thanks a bunch,

There is also `equery'

emerge app-portage/gentoolkit


equery files pkgname (without version number)

It can do a few things that q can't and vice-versa if I recall
correctly.