rpm in background

Matthew Miller mattdm at fedoraproject.org
Fri Sep 4 15:04:45 UTC 2015


On Sun, Aug 30, 2015 at 02:13:49PM +0200, Patrick Dupre wrote:
> Hello,
> This task used to run very often on my machine and makes every slow.
> How can I manage it?
> rpm -q -a --queryformat %{NAME}\n%{VERSION}-%{RELEASE}\n%{EPOCH}\n%{GROUP}\n%{SUMMARY}\n\n

Why does it run very often on your machine?

In any case, you can speed it up by an order of magnitude by adding
`--nodigest --nosignature`, like this:

    $ time rpm -qa > /dev/null
    real	0m1.462s
    user	0m1.390s
    sys 	0m0.042s

    $ time rpm --nodigest --nosignature -qa > /dev/null

    real	0m0.152s
    user	0m0.094s
    sys 	0m0.058s


-- 
Matthew Miller
<mattdm at fedoraproject.org>
Fedora Project Leader


More information about the users mailing list