Re: Checking for installed package

2013-05-25 Thread Kip Warner
On Sun, 2013-05-26 at 11:04 +1000, David wrote: > On 26/05/2013, Kip Warner wrote: > > > > 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? > > http://mywiki.wooledge.org/locale Thanks David. -- Kip Warner -- Soft

Re: Checking for installed package

2013-05-25 Thread Kip Warner
On Sat, 2013-05-25 at 17:01 +0200, Slavko wrote: > Consider LANG=C not as locale, but as built-in strings, because the app > must have some strings (if it uses strings for communication) :-) > > Then all systems have "C", but not all must have "en-GB", for example. > There can be one problem, the

Re: Checking for installed package

2013-05-25 Thread Kip Warner
On Sat, 2013-05-25 at 17:47 +0300, Andrei POPESCU wrote: > Which en_US locale? > > $ grep en_US /etc/locale_gen > # en_US ISO-8859-1 > # en_US.ISO-8859-15 ISO-8859-15 > # en_US.UTF-8 UTF-8 The latter. > Yes, AFAIK the C locale is built into libc. Thanks Andrei. -- Kip Warner -- Software Engin

Re: Checking for installed package

2013-05-25 Thread David
On 26/05/2013, Kip Warner wrote: > > 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? http://mywiki.wooledge.org/locale -- To UNSUBSCRIBE, email to debian-user-requ...@lists.debian.org with a subject of "unsubscrib

Re: Checking for installed package

2013-05-25 Thread Slavko
Dňa 25.05.2013 16:26 Kip Warner wrote / napísal(a): > Further, is C locale guaranteed to be present on any properly > functioning system, independent of whether the user's preferred locale > is, say, Russian? Consider LANG=C not as locale, but as built-in strings, because the app must have some

Re: Checking for installed package

2013-05-25 Thread Andrei POPESCU
On Sb, 25 mai 13, 07:26:49, Kip Warner wrote: > > 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? Which en_US locale? $ grep en_US /etc/locale_gen # en_US ISO-8859-1 # en_US.ISO-8859-15 ISO-8859-15 # en_US.UTF-8 UTF-

Re: Checking for installed package

2013-05-25 Thread Kip Warner
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. T

Re: Checking for installed package

2013-05-24 Thread Dom
On 25/05/13 06:30, Kip Warner wrote: Hey list, I'd like to know the most reliable way for a bash script to verify that a package is installed on the user's system. I've looked already at dpkg, dpkg-query, and aptitude. These are the constraints: 1. It needs to work on any stock Debian

Checking for installed package

2013-05-24 Thread Kip Warner
Hey list, I'd like to know the most reliable way for a bash script to verify that a package is installed on the user's system. I've looked already at dpkg, dpkg-query, and aptitude. These are the constraints: 1. It needs to work on any stock Debian based system, e.g. aptitude not