.deb pakage querys

Derek Broughton news at pointerstop.ca
Fri Mar 21 11:30:18 UTC 2008


Robert Holtzman wrote:

> In distros using RPM package management a simple "rpm -q <package name>"
> reveals whether a package is installed and what version it is. I've been
> checking man pages for aptitude and apt-get and can't find the same
> capability. Aptitude has an option which gives package information but
> doesn't seem to indicate whether the package is installed. "Aptitude
> search <package name>" seems to show whether the package is installed but
> gives no version information.
> 
> Can someone tell me what I'm missing?

Eyesight? :-)

# aptitude show ubuntu-minimal | grep State
State: installed

I admit, if I do that in the konsole I usually have open (without the grep),
the "installed" line scrolls off the top of the display, so I
prefer "apt-cache policy" to get just the state and version.
-- 
derek





More information about the ubuntu-users mailing list