LinuxQuestions.org
Welcome to the most active Linux Forum on the web.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Fedora
User Name
Password
Fedora This forum is for the discussion of the Fedora Project.

Notices


Reply
  Search this Thread
Old 06-10-2007, 02:42 PM   #1
MheAd
Member
 
Registered: Jun 2007
Distribution: Ubuntu 14.04
Posts: 186

Rep: Reputation: 36
Slow tab-completetion with Yum.


Hi.
This is something that I haven't been noticing before, as I honestly didn't use Tab button in completing file names in YUM but I usually wrote them completely by hand.

Today I discovered that tab usage is extremely slow (Fedora 7). For instance, normally you get an instant completition of a command, or file name or whatever, when using TAB in terminal. But when using it with a YUM-command it takes up to 10 seconds before anything happens and while waiting I'm not able to move cursor in that terminal window. Is this normal thing with YUM or is something terribly wrong?

Thanks in advance!
M.

Last edited by MheAd; 06-10-2007 at 03:00 PM.
 
Old 06-10-2007, 03:43 PM   #2
acid_kewpie
Moderator
 
Registered: Jun 2001
Location: UK
Distribution: Gentoo, RHEL, Fedora, Centos
Posts: 43,417

Rep: Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985
this is impossible to be related to yum at all. tab completion is a bash thing, and has no concept of the command you are using it with. how are you trying to use it in the first place? if i were running, for example. "yum install firefox" then at no point is there any reason / use in using tab completion, as there's nothing to complete.
 
Old 06-10-2007, 04:00 PM   #3
MheAd
Member
 
Registered: Jun 2007
Distribution: Ubuntu 14.04
Posts: 186

Original Poster
Rep: Reputation: 36
Hi,
To give you a clearer idea what I'm talking about - let's say I want to install a Torrent client in particular. I list the avaiable ones with for instance yum list | grep torrent and I get quite many.

Lets say I want to install Ctorrent, which usually is installed with either yum install ctorrent. At the point I'm done writing "Ctor" for instace and press TAB, I get the completion to the whole word - Ctorrent, but it takes like 10 seconds, unlike when doing normal bash-tasks. That's why I was wondering, this obeservation I made, whether it's normal - the delay time.
 
Old 06-10-2007, 04:41 PM   #4
acid_kewpie
Moderator
 
Registered: Jun 2001
Location: UK
Distribution: Gentoo, RHEL, Fedora, Centos
Posts: 43,417

Rep: Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985
but it doesn't do that... if you type "yum install Ctor" and then press tab, nothing at all happens... nothing is meant to happen unless you have somethign in your current directory that begins with "Ctor", inwhich case that would autocomplete.
 
Old 06-10-2007, 05:11 PM   #5
MheAd
Member
 
Registered: Jun 2007
Distribution: Ubuntu 14.04
Posts: 186

Original Poster
Rep: Reputation: 36
Quote:
Originally Posted by acid_kewpie
but it doesn't do that... if you type "yum install Ctor" and then press tab, nothing at all happens... nothing is meant to happen unless you have somethign in your current directory that begins with "Ctor", inwhich case that would autocomplete.
Mate, I'm telling you - it does happen - I do get Ctorrent completed after pressing tab, when using YUM. However, it's slow...it takes around 10 seconds. I never thought about this before but it actually works. Perhaps it's due the fact I've installed bash-completition tool...or something. I'm not sure...

All I was wondering is why it goes so slow...but from what I'm reading here, you weren't even aware of it was possible. So perhaps this was just an unortodox example so I maybe should just start living with the fact that I shouldn't be using TAB for stuff like these...
 
Old 06-11-2007, 01:58 AM   #6
acid_kewpie
Moderator
 
Registered: Jun 2001
Location: UK
Distribution: Gentoo, RHEL, Fedora, Centos
Posts: 43,417

Rep: Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985
ok, now obviously IF it does that, that'd be great. somehow hook into any given application to autocomplete within a context. google says nothing at all about this though, other than referencing a project that died year ago from what i can tell, and i'm running a stock fedora 7 install and this doesn't happen in bash. maybe someone else can shed some light on this?? if it does happen then 10 seconds seems totally reasonable as it's got to go away and dig through a yum database.
 
  


Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
Shell script window close upon completetion TuxLives Linux - General 4 01-27-2007 10:33 PM
FC 4. Modify ALT+TAB behaviour to CTRL+TAB xtracto Linux - Software 1 09-22-2005 02:06 PM
yum is slow on old computer. moniker117 Fedora 2 05-21-2005 05:47 PM
Yum very slow on FC3 ewschone Fedora 3 01-12-2005 11:50 AM
Why is Yum so slow? AnthonyM Fedora 3 09-05-2004 03:03 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Fedora

All times are GMT -5. The time now is 08:49 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration