Barry Marler said,
>> What is the quickest (or preferred) way of checking (in a
>> bash script) if a given package is installed?
> 2. qpkg -I <package name>
qpkg returns zero whether the package is installed or not.
You could use something like
if [ `qpkg -I packagename | wc -l` -gt 0 ]; then
echo "installed"
else
echo "not installed"
fi
Cheers
Neil
--
"God created the world in six days. On the seventh day he also decided to create
England...
just to try out his Practical Joke Weather Machine."
--
[EMAIL PROTECTED] mailing list