On Fri, 2007-02-23 at 06:51 -0800, Michael M. wrote: > On Sat, 2007-02-10 at 14:35 +0100, Gilles Mocellin wrote: > > Le jeudi 8 février 2007 23:56, Mathias Brodala a écrit : > > > Hello Nelson. > > > > > > Nelson Castillo, 08.02.2007 23:52: > > > >> How to check whether hplip (or any other package) is installed on my > > > >> system or not ? > > > > > > > > dpkg -l | grep packagename > > > > > > Or just: > > > > > > $ dpkg -l packagename > > > > And if we don't know exactly the name : > > $ dpkg -l packagenam* > > Don't the both of you mean?: > > $ dpkg -s <packagename / packagenam* / | grep packagename> > > dpkg with the -l option just lists some information about the package, > but unless I'm missing something, it doesn't actually indicate whether > you have the package installed on your system. > > >From the man page: > > dpkg -l | --list package-name-pattern ... > List packages matching given pattern. > dpkg -s | --status package-name ... > Report status of specified package.
Oh now I see! It does indicate the status of the package, just somewhat cryptically: "ii", "un", etc. -- Michael M. ++ Portland, OR ++ USA "No live organism can continue for long to exist sanely under conditions of absolute reality; even larks and katydids are supposed, by some, to dream." --S. Jackson -- To UNSUBSCRIBE, email to [EMAIL PROTECTED] with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]