why doesn't yum cache anything?

Jamie Zawinski jwz at jwz.org
Mon Jan 3 00:09:50 UTC 2005


Konstantin Ryabitsev wrote:
> 
>>     % time rpm -qa '*mtr*' >/dev/null
>>     3.576u 0.121s 0:05.93 62.2%     0+0k 0+0io 0pf+0w
>>     % time yum -C list '*mtr*' >/dev/null
>>     5.474u 0.539s 0:16.41 36.5%     0+0k 0+0io 8pf+0w
>
> No it isn't. When you are doing "rpm -qa" you are only querying the
> database of installed packages. When doing "yum list" you are querying
> installed, AND available packages,

Ok, fair enough, those speeds are almost exactly proportional:

    rpm -qa | wc -l          =>   654
    yum -C list '*' | wc -l  =>  1798

    (5.93 / 16.41) / (654.0 / 1798.0)  =>  0.9934

Is there any kind of reasonable GUI for yum yet?  A lot of these
problems wouldn't matter if the "session" was longer, and it was only
doing all of this parsing once at startup, letting you do multiple
queries and installs without it needing to start over from scratch each
time.  I thought Ximian Red Carpet was fantastic and I really miss it.

-- 
Jamie Zawinski         jwz at jwz.org                  http://www.jwz.org/
                       jwz at dnalounge.com      http://www.dnalounge.com/
                                            http://jwz.livejournal.com/




More information about the devel mailing list