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

Re: get pkg name

On Sat, Oct 28, 2006 at 09:13:54PM +0800, linux china wrote:
> I don't mean adjusting the columns. you can see the package name is
> cut, the words after libhtml-tree-p is missing, so I just want to
> output the name & description which are needed, other information like
> version isn't needed, so how to just output the package name &
> description?
> $ dpkg -l 'libhtml*'
> ||/ Name           Version        Description
> +++-==============-==============-============================================
> un  libhtml-format <none>         (no description available)
> ii  libhtml-parser 3.55-1         A collection of modules that parse HTML 
> text

Checking man dpkg, under -l it says to see dpkg-query for further info.
Checking man dpkg-query under -l is the same.
	under -W, is the same as -l except the output can be customized
	using the --showformat option.

Try that.


Reply to: