Can Fedora count it rpms?

Patrick O'Callaghan pocallaghan at gmail.com
Sun Oct 20 22:34:15 UTC 2013


On Sun, Oct 20, 2013 at 10:58 PM, Doug <dmcgarrett at optonline.net> wrote:

> I don't know what this is counting--I must have missed the first post.
> Anyway, I ran it in my pclos-kde-32, and go this:
>
> [doug at linux1 ~]$ rpm -qa | wc -l
> 2352
>
> So what is it that I have 2352 of?
>

"rpm -qa"  lists all installed packages on its standard output. "wc -l"
counts all the lines in its standard input. Pipe one into the other and
it's telling you that that you have 2352 rpm packages installed. Simple.

poc
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.fedoraproject.org/pipermail/users/attachments/20131020/d98dc3d0/attachment-0001.html>


More information about the users mailing list