> > 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}-* ]
> 
or:

qpkg -I | grep package_name


--
[EMAIL PROTECTED] mailing list

Reply via email to