logo       

Idea for yum: msg#01130

Subject: Idea for yum
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.

Also, would it be a good idea to make yum run with -C by default when "yum update" was run less than X seconds ago, where X is configurable? That would make sense if the cronjob service is used, since "yum update" is run once a day.

/Peter Backlund


--
fedora-devel-list mailing list
fedora-devel-list@xxxxxxxxxx
http://www.redhat.com/mailman/listinfo/fedora-devel-list



<Prev in Thread] Current Thread [Next in Thread>
Google Custom Search

Recently Viewed:
linux.arklinux....    user-groups.lin...    kde.usability/2...    ietf.ipp/2002-0...    mail.spam.spamc...    os.netbsd.devel...    audio.cd-record...    text.unicode.de...    php.documentati...    games.fps.halfl...    window-managers...    suse.oracle.gen...    bug-tracking.gn...    video.dvdrip.us...    xfree86.cvs/200...    java.netbeans.m...    network.argus/2...    culture.sf.kill...    debian.ports.al...    freebsd.questio...    qplus.devel/200...    handhelds.palm....   
Home | blog view | USPTO Patent Archive | advertise | OSDir is an inevitable website. super tiny logo

Free Magazines

Cisco News
Receive a free quarterly e-newsletter with exclusive articles on how Cisco IT uses its own products and solutions to enable the business.
subscribe

Systems Management News, the newspaper for IT systems administration and data center managers! Each issue of Systems Management News is chock-full of news and analysis to help you understand what's happening in your field.
subscribe

The Enterprise Newsweekly eWeek is the essential technology information source for builders of e-business.
subscribe

Oracle Magazine Oracle Magazine contains technology strategy articles, sample code, tips, Oracle and partner news, how to articles for developers and DBAs, and more. Oracle (NASDAQ: ORCL) is the world's largest enterprise software company.
subscribe

Total Telecom Total Telecom is "The Economist of the communications industry".
subscribe