why doesn't yum cache anything?
Konstantin Ryabitsev
mricon at gmail.com
Sun Jan 2 23:48:58 UTC 2005
On Sun, 02 Jan 2005 15:42:16 -0800, Jamie Zawinski <jwz at jwz.org> wrote:
> I think the theory that "yum is fine, it's the RPM libs that are slow"
> is pretty well debunked by this:
>
> % 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, 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.
Regards,
--
Konstantin Ryabitsev
Zlotniks, INC
More information about the fedora-devel-list
mailing list