[packagekit] Time to search for a file in the yum backend

Richard Hughes hughsient at gmail.com
Thu Jan 31 15:51:50 PST 2008

It seems to take a long time to search for a file in the yum backend:

[hughsie at hughsie-laptop PackageKit]$ time rpm -qf /usr/share/applications/gnome-ekiga.desktop

real    0m0.091s
user    0m0.026s
sys     0m0.005s
[hughsie at hughsie-laptop PackageKit]$ pkcon search file /usr/share/applications/gnome-ekiga.desktop
installed    ekiga                i386    2.0.11-1.fc8    installed    A Gnome based SIP/H323 teleconferencing application              
search-file runtime was 73.0 seconds

Surely we can just check the rpmdb before we check the repos? checking
the rpmdb ~ 1 second, checking using yum takes over 1 minute.



More information about the PackageKit mailing list