[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Re: How to obtain current package version number?



Roland Mas wrote:
> Colin Watson (2003-03-04 14:06:07 +0000) :
>>On Tue, Mar 04, 2003 at 02:14:59PM +0100, Bastian Kleineidam wrote:
>   How about the following?
> BASH_VERSION=$(dpkg -s bash | awk '/^Version:/ { print $2 }')
if [ "$(dpkg -s bash | awk '/^Status:/ { print $3 " " $4 }')" == "ok installed" ]

Cheers

Thomas

Attachment: pgphr457e2h85.pgp
Description: PGP signature


Reply to: