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

Re: Checking for installed package



On Sat, 2013-05-25 at 07:02 +0100, Dom wrote:
> LANGUAGE="C" dpkg -l $packagename | grep -q "^ii "
> 
> will return 0 if the package is installed and 1 for any other state.

Hey Dom. I don't know why I didn't think to set the environment variable
before executing the query. That surely will work. Thanks a lot.

By the way, where can I read more on specifically the meaning of the C
locale and how it is the same or different from en_US?

Further, is C locale guaranteed to be present on any properly
functioning system, independent of whether the user's preferred locale
is, say, Russian?

-- 
Kip Warner -- Software Engineer
OpenPGP encrypted/signed mail preferred
http://www.thevertigo.com

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


Reply to: