Bug 478784
Summary: | Bash-completion during yum install hangs | ||||||
---|---|---|---|---|---|---|---|
Product: | [Fedora] Fedora | Reporter: | Joseph Smidt <josephsmidt> | ||||
Component: | bash-completion | Assignee: | Ville Skyttä <ville.skytta> | ||||
Status: | CLOSED ERRATA | QA Contact: | Fedora Extras Quality Assurance <extras-qa> | ||||
Severity: | medium | Docs Contact: | |||||
Priority: | low | ||||||
Version: | 10 | CC: | sheltren | ||||
Target Milestone: | --- | ||||||
Target Release: | --- | ||||||
Hardware: | All | ||||||
OS: | Linux | ||||||
Whiteboard: | |||||||
Fixed In Version: | 1.0-2 | Doc Type: | Bug Fix | ||||
Doc Text: | Story Points: | --- | |||||
Clone Of: | Environment: | ||||||
Last Closed: | 2009-11-19 17:06:17 UTC | Type: | --- | ||||
Regression: | --- | Mount Type: | --- | ||||
Documentation: | --- | CRM: | |||||
Verified Versions: | Category: | --- | |||||
oVirt Team: | --- | RHEL 7.3 requirements from Atomic Host: | |||||
Cloudforms Team: | --- | Target Upstream Version: | |||||
Embargoed: | |||||||
Attachments: |
|
Description
Joseph Smidt
2009-01-05 00:44:12 UTC
Created attachment 328213 [details]
Speed up yum install completions
It doesn't hang for me, but it sure is slow. This is primarily because bash_completion invokes "yum -C list" to get the completions, and that just takes a long time. To watch what bash_completion is doing, do "set -x" in the bash shell, then try the completion in that same shell (and watch "top" in another if interested).
However, the attached patch speeds up most "yum install" (and deplist) cases quite a bit for me, could you try it out? The case to which this has much less significant effect is "yum install [tab]", i.e. without typing anything from the package name, but I don't think there's much that can be done about that in bash_completion.
Note that after applying the patch you'll need to open a new shell to get the patched bash_completion loaded (and possibly source it), verify with "set -x" that it instead of "yum -C list" it invokes something starting with "yum -qC list available".
This message is a reminder that Fedora 10 is nearing its end of life. Approximately 30 (thirty) days from now Fedora will stop maintaining and issuing updates for Fedora 10. It is Fedora's policy to close all bug reports from releases that are no longer maintained. At that time this bug will be closed as WONTFIX if it remains open with a Fedora 'version' of '10'. Package Maintainer: If you wish for this bug to remain open because you plan to fix it in a currently maintained version, simply change the 'version' to a later Fedora version prior to Fedora 10's end of life. Bug Reporter: Thank you for reporting this issue and we are sorry that we may not be able to fix it before Fedora 10 is end of life. If you would still like to see this bug fixed and are able to reproduce it against a later version of Fedora please change the 'version' of this bug to the applicable version. If you are unable to change the version, please add a comment here and someone will do it for you. Although we aim to fix as many bugs as possible during every release's lifetime, sometimes those efforts are overtaken by events. Often a more recent Fedora release includes newer upstream software that fixes bugs or makes them obsolete. The process we are following is described here: http://fedoraproject.org/wiki/BugZappers/HouseKeeping Should be fixed in 1.0-2 some time ago. |