Red Hat Bugzilla – Bug 1149972
update command implicitly working as reinstall
Last modified: 2014-12-13 04:53:58 EST
Description of problem:
Why can't dnf tells me that I have already installed this package? And if I want to reinstall a package I can see there is a command reinstall available to dnf. Following command never failed and always runs successfully.
$ sudo dnf update /home/parag/Downloads/dnf-0.6.2-1.fc21.noarch.rpm /home/parag/Downloads/python3-dnf-0.6.2-1.fc21.noarch.rpm
Package Arch Version Repository Size
dnf noarch 0.6.2-1.fc21 @commandline 548 k
python3-dnf noarch 0.6.2-1.fc21 @commandline 403 k
Total size: 951 k
Is this ok [y/N]: y
Running transaction check
Transaction check succeeded.
Running transaction test
Transaction test succeeded.
Reinstalling: dnf-0.6.2-1.fc21.noarch 1/4
Reinstalling: python3-dnf-0.6.2-1.fc21.noarch 2/4
Erasing : python3-dnf-0.6.2-1.fc21.noarch 3/4
Erasing : dnf-0.6.2-1.fc21.noarch 4/4
Verifying : dnf-0.6.2-1.fc21.noarch 1/4
Verifying : python3-dnf-0.6.2-1.fc21.noarch 2/4
Verifying : python3-dnf-0.6.2-1.fc21.noarch 3/4
Verifying : dnf-0.6.2-1.fc21.noarch 4/4
dnf.noarch 0.6.2-1.fc21 python3-dnf.noarch 0.6.2-1.fc21
Version-Release number of selected component (if applicable):
Steps to Reproduce:
update behaving like reinstall
update should check if its already installed and say like that
and if the rpm version is older than installed version it will do a downgrading instead.
dnf install was fixed in 0.6.2 to only install if the package was not installed allready.
dnf update foobar.rpm should only work if if foobar is installed and foobar.rpm is a update to foobar.
same thing goes from reinstall foobar.rpm and downgrade foobar.rpm
Hi, thanks for the report. It should work as you said.
Fixed in the upstream.
dnf-0.6.3-2.fc21,dnf-plugins-core-0.1.4-1.fc21,hawkey-0.5.2-1.fc21 has been submitted as an update for Fedora 21.
Package dnf-0.6.3-2.fc21, hawkey-0.5.2-1.fc21, dnf-plugins-core-0.1.4-1.fc21:
* should fix your issue,
* was pushed to the Fedora 21 testing repository,
* should be available at your local mirror within two days.
Update it with:
# su -c 'yum update --enablerepo=updates-testing dnf-0.6.3-2.fc21 hawkey-0.5.2-1.fc21 dnf-plugins-core-0.1.4-1.fc21'
as soon as you are able to.
Please go to the following url:
then log in and leave karma (feedback).
dnf-0.6.3-2.fc21, hawkey-0.5.2-1.fc21, dnf-plugins-core-0.1.4-1.fc21 has been pushed to the Fedora 21 stable repository. If problems still persist, please make note of it in this bug report.