"apt" to eventaully replace "rpm"?

Zhukov Pavel gelios at gmail.com
Sun Nov 25 23:12:49 UTC 2007


i think:
rpm -qa --qf '%{vendor}\n' | sort | uniq -c

On 11/26/07, Dave Burns <tburns at hawaii.edu> wrote:
> On Nov 25, 2007 10:27 AM, John Summerfield
> <debian at herakles.homelinux.org> wrote:
> > (which might be the reviewer's), Try this example:
> >
> > rpm -qa --qf '%vendorn' | sort | uniq -c
> >       1 Adobe Systems, Incorporated
> >     12 (none)
> >       1 RealNetworks, Inc
> > 838 Red Hat, Inc.
> >       1 Sun Microsystems
>
> I did. I got one of these per package:
>
> error: incorrect format: missing { after %
>
> Am I using the wrong shell? Have some alias defined that is screwing
> it up? I was pleased to find a description of --qf in the rpm man page
> (no examples of course) but no reference to %vendorn. Is it a typo?
>
> I tried to take the advice of the error message...
>
> rpm -qa --qf '%{vendorn}' | sort | uniq -c
>
> error: incorrect format: unknown tag
>
> Various other simpleminded variants fail. Apparently someone familiar
> with printf might be able to fix this, but I am clueless. Is there a
> way to make it work?
>
> Dave
>
> --
> fedora-list mailing list
> fedora-list at redhat.com
> To unsubscribe: https://www.redhat.com/mailman/listinfo/fedora-list
>




More information about the fedora-list mailing list