[CentOS] is yum a complete substitute of rpm?

Bowie Bailey Bowie_Bailey at BUC.com
Mon Feb 15 15:40:28 UTC 2010

Jim Green wrote:
> On 13 February 2010 10:27, Robert P. J. Day <rpjday at crashcourse.ca> 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.


More information about the CentOS mailing list