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

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

 



Zhukov Pavel wrote:
i think:
rpm -qa --qf '%{vendor}\n' | sort | uniq -c
[root@js ~]# rpm -qa --qf '%{vendor}\n' | sort | uniq -c
      1 Adobe Systems, Incorporated
    592 CentOS
      3 Dag Apt Repository, http://dag.wieers.com/apt/
      4 http://centos.org
      1 Invoca Systems
      3 (none)
[root@js ~]#

A smarty for you:-)



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?

That was the point, the reviewer (correctly) pointed out an error, then made two of his own: he left out the {} and he forgot that the n should be \n.





\

--

Cheers
John

-- spambait
1aaaaaaa@xxxxxxxxxxxxxxxx  Z1aaaaaaa@xxxxxxxxxxxxxxxx
-- Advice
http://webfoot.com/advice/email.top.php
http://www.catb.org/~esr/faqs/smart-questions.html
http://support.microsoft.com/kb/555375

You cannot reply off-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