Re: is yum a complete substitute of rpm?

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



Jim Green wrote:
> On 13 February 2010 10:27, Robert P. J. Day <rpjday@xxxxxxxxxxxxxx> wrote:
>   
>> On Sat, 13 Feb 2010, Jim Green wrote:
>>
>>
>>  $ rpm -qa                     # list all installed packages
>>     
>
> yum list installed

I use rpm for basic stuff because it runs faster.  For example:

$ time yum list installed
...
real    0m17.069s
user    0m0.857s
sys     0m0.675s

$ time rpm -qa
...
real    0m4.714s
user    0m4.457s
sys     0m0.120s

Yum tends to take a while to read in its databases before it processes
your command.  So for simple commands, it is faster to use rpm.  On slow
boxes, it can be significantly faster.

-- 
Bowie
_______________________________________________
CentOS mailing list
CentOS@xxxxxxxxxx
http://lists.centos.org/mailman/listinfo/centos

[Index of Archives]     [CentOS]     [CentOS Announce]     [CentOS Development]     [CentOS ARM Devel]     [CentOS Docs]     [CentOS Virtualization]     [Carrier Grade Linux]     [Linux Media]     [Asterisk]     [DCCP]     [Netdev]     [Xorg]     [Linux USB]
  Powered by Linux