Idea for yum

seth vidal skvidal at phy.duke.edu
Tue Jan 20 21:02:20 UTC 2004


On Tue, 2004-01-20 at 06:25, Peter Backlund wrote:
> Hi.
> 
> I was fooling around with bash-completion, and noticed that the 
> fedora.us package is already configured to complete yum commands and 
> even package names. Unfortunately does "yum list" takes _really_ long, 
> making package name completion unusable. But if you add
> 
> /usr/bin/yum -R 120 -e 0 -d 0 -C list | cut -d" " -f1 > 
> /var/cache/yum/pkg-name-list
> 
> to /etc/cron.daily/yum.cron, and then modify /etc/bash_completion like:
> 
> install)
>    COMPREPLY=( $( compgen -W '$( cat /var/cache/yum/pkg-name-list )' -- 
> $cur ) )
> 
> in _yum(), you get a daily caching of the package names, and completion 
> is instant. Very handy.

what if we ignore working on things to make the .hdrs implementation of
the metadata faster and instead work on making things fast and useful
with the new xml metadata implementation?

That might be a more functional use of developer time, over all.

-sv






More information about the devel mailing list