On January 22, 2004 09:36 am, Jason Stubbs wrote:
> > What is the quickest (or preferred) way of checking (in a
> > bash script) if a given package is installed?
>
> I don't know if it would be the preferred way, but I think the quickest
> would be:
>
> PKG="sys-apps/portage"
> [ -e /var/db/pkg/${PKG}-* ]



i always just do one of the following:

  $ emerge -p <package_name>

or

  locate <binary_from_package> | grep bin

the second is less reliable but faster

-- 
giving it up would mean...  it would mean that all along they'd been wrong. it 
would mean that they'd never known how to rule the world. it would mean... 
relinquishing their pretensions to godhood.
  - Daniel Quinn's "ishmael"


--
[EMAIL PROTECTED] mailing list

Reply via email to