rpm "list package names only"

Ben Stringer ben at burbong.com
Thu Nov 3 00:19:59 UTC 2005


On Thu, 2005-11-03 at 13:13 +1300, Morgan Read wrote:
> Hi,
> 
> I want a list of installed packages by package name only (i.e. no version,
> release, .rpm, etc.)
> 
> How do I do it?

It's documented in the manpage - use the "--qf" option to format the
results as you want them.

Eg.

  rpm -qa --qf "%{NAME}\n"

> 
> Simple I know, but...
> 
> I want to be able to generate two lists of rpms installed to diff so I know
> what package changes have occurred between one install and another.

Don't you want to know about differences in version too?

Cheers, Ben





More information about the fedora-list mailing list