Re: "apt" to eventaully replace "rpm"?

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

 



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

On 11/26/07, Dave Burns <tburns@xxxxxxxxxx> wrote:
> On Nov 25, 2007 10:27 AM, John Summerfield
> <debian@xxxxxxxxxxxxxxxxxxxxxx> 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@xxxxxxxxxx
> To unsubscribe: https://www.redhat.com/mailman/listinfo/fedora-list
>

-- 
fedora-list mailing list
fedora-list@xxxxxxxxxx
To unsubscribe: https://www.redhat.com/mailman/listinfo/fedora-list
[Index of Archives]     [Older Fedora Users]     [Fedora Announce]     [Fedora Package Announce]     [EPEL Announce]     [Fedora Magazine]     [Fedora News]     [Fedora Summer Coding]     [Fedora Laptop]     [Fedora Cloud]     [Fedora Advisory Board]     [Fedora Education]     [Fedora Security]     [Fedora Scitech]     [Fedora Robotics]     [Fedora Maintainers]     [Fedora Infrastructure]     [Fedora Websites]     [Anaconda Devel]     [Fedora Devel Java]     [Fedora Legacy]     [Fedora Desktop]     [Fedora Fonts]     [ATA RAID]     [Fedora Marketing]     [Fedora Management Tools]     [Fedora Mentors]     [SSH]     [Fedora Package Review]     [Fedora R Devel]     [Fedora PHP Devel]     [Kickstart]     [Fedora Music]     [Fedora Packaging]     [Centos]     [Fedora SELinux]     [Fedora Legal]     [Fedora Kernel]     [Fedora OCaml]     [Coolkey]     [Virtualization Tools]     [ET Management Tools]     [Yum Users]     [Tux]     [Yosemite News]     [Gnome Users]     [KDE Users]     [Fedora Art]     [Fedora Docs]     [Asterisk PBX]     [Fedora Sparc]     [Fedora Universal Network Connector]     [Libvirt Users]     [Fedora ARM]

  Powered by Linux