Re: problem searching packages
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.
michael@ratty:/tmp$ dpkg -l evolution
Desired=Unknown/Install/Remove/Purge/Hold
|
Status=Not/Installed/Config-files/Unpacked/Failed-config/Half-installed
|/ Err?=(none)/Hold/Reinst-required/X=both-problems (Status,Err:
uppercase=bad)
||/ Name Version Description
+++-=========================-=========================-==================================================================
ii evolution 2.0.4-2sarge1 The groupware
suite
err... doesn't that tell me it's installed?
>
> >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.
>
>
> --
> 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
>
>
Reply to: