Red Hat Bugzilla – Bug 1073457
Auto-completion issue with sudo dnf install
Last modified: 2015-07-21 04:14:49 EDT
Created attachment 871446 [details]
Auto-completion with yum and dnf
Description of problem:
When trying to install a package with e.g. "sudo dnf install lib", performing tab completion results in dnf immediately asking for the root (or user) password, as shown in the attachment. After authenticating, completion is no longer possible and dnf starts trying to install whatever name fragment was entered.
Version-Release number of selected component (if applicable):
At any time the user has to authenticate for sudo.
Steps to Reproduce:
1. Invoke tab completion on a "sudo dnf install" command.
dnf requests authentication and breaks off the completion.
Require root access only for actually installing, not for listing package database contents, like yum.
The same operation performed with yum is also included in the attachment.
Elad can you please take a look and decide how to handle this?
Created attachment 871500 [details]
After reading through some more reports against dnf, I can confirm that this issue does not occur with dnf-plugins-core (0.0.5-2) also installed; in this case the completion matching is performed very quickly. However, yum and dnf report different numbers of possible matches (see attachment).
*** Bug 1082254 has been marked as a duplicate of this bug. ***
dnf-plugins-core-0.0.8-2.fc20, libsolv-0.6.1-1.git6d968f1.fc20, hawkey-0.4.16-1.fc20, dnf-0.5.2-1.fc20 has been submitted as an update for Fedora 20.
Package dnf-plugins-core-0.0.8-2.fc20, libsolv-0.6.1-1.git6d968f1.fc20, hawkey-0.4.16-1.fc20, dnf-0.5.2-1.fc20:
* should fix your issue,
* was pushed to the Fedora 20 testing repository,
* should be available at your local mirror within two days.
Update it with:
# su -c 'yum update --enablerepo=updates-testing dnf-plugins-core-0.0.8-2.fc20 libsolv-0.6.1-1.git6d968f1.fc20 hawkey-0.4.16-1.fc20 dnf-0.5.2-1.fc20'
as soon as you are able to.
Please go to the following url:
then log in and leave karma (feedback).
dnf-plugins-core-0.0.8-2.fc20, libsolv-0.6.1-1.git6d968f1.fc20, hawkey-0.4.16-1.fc20, dnf-0.5.2-1.fc20 has been pushed to the Fedora 20 stable repository. If problems still persist, please make note of it in this bug report.
The problem still exist if i set it as alias, i.e. `alias dnf="sudo dnf" on ~/.bashrc.