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

Re: why doesn't yum cache anything?



On Sun, 2 Jan 2005 18:48:58 -0500, Konstantin Ryabitsev
<mricon gmail com> wrote:
> 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, for which the metadata must be
> parsed and loaded. That's a significant difference, if only because
> the number of packages goes up from a few hundred to several
> thousands.

In fact:

icon protee:[~]$ rpm -qa | wc -l
645

so, 645 packages installed

icon protee:[~]$ time rpm -qa '*mtr*'
mtr-2:0.54-10.i386

real    0m5.006s
user    0m4.760s
sys     0m0.135s

so, 5 seconds

icon protee:[~]$ time yum -C list '*mtr*'
Setting up Repo:  updates-released
Setting up Repo:  base
Setting up Repo:  freshrpms
Reading repository metadata in from local files
updates-re: ################################################## 407/407
base      : ################################################## 2622/2622
freshrpms : ################################################## 456/456
Excluding Packages from Fedora Core 3 - i386 - Released Updates
Finished
Installed Packages
mtr.i386                                 2:0.54-10              installed
Available Packages
mtr-gtk.i386                             2:0.54-10              base

real    0m8.215s
user    0m5.585s
sys     0m0.435s

so, 3485 packages in 8.2 seconds. By golly, yum is, actually *faster*
then rpm -qa, taking less than twice as long for 5 times as many
packages.

Regards,
-- 
Konstantin Ryabitsev
Zlotniks, INC


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