Description of problem: If I download an update rpm from, say, koji and try to install using dnf, the package manager does not recognize the rpm as an update. Yum works fine. Version-Release number of selected component (if applicable): dnf-0.6.2-1.fc21 How reproducible: Always Steps to Reproduce: 1. Download an update rpm from koji (for example) 2. Attempt package install using dnf install <package name> Actual results: root @ imladris Downloads# dnf install xfce4-power-manager-1.4.2-1.fc21.x86_64.rpm Package xfce4-power-manager-1.4.1-3.fc21.x86_64 is already installed, skipping. Error: Nothing to do. root @ imladris Downloads# yum install xfce4-power-manager-1.4.2-1.fc21.x86_64.rpm Loaded plugins: langpacks Examining xfce4-power-manager-1.4.2-1.fc21.x86_64.rpm: xfce4-power-manager-1.4.2-1.fc21.x86_64 Marking xfce4-power-manager-1.4.2-1.fc21.x86_64.rpm as an update to xfce4-power-manager-1.4.1-3.fc21.x86_64 Resolving Dependencies --> Running transaction check ---> Package xfce4-power-manager.x86_64 0:1.4.1-3.fc21 will be updated ---> Package xfce4-power-manager.x86_64 0:1.4.2-1.fc21 will be an update --> Finished Dependency Resolution adobe-linux-x86_64 | 951 B 00:00:00 bumblebee/21 | 2.9 kB 00:00:00 bumblebee-nonfree/21 | 2.9 kB 00:00:00 google-talkplugin | 951 B 00:00:00 isv_ownCloud_desktop | 1.6 kB 00:00:00 isv_ownCloud_desktop/primary | 5.4 kB 00:00:00 nonamedotc-xfce411/21/x86_64 | 3.0 kB 00:00:00 rpmfusion-free-rawhide/x86_64 | 3.3 kB 00:00:00 rpmfusion-nonfree-rawhide/x86_64 | 3.3 kB 00:00:00 updates/21/x86_64/metalink | 18 kB 00:00:00 updates-testing/21/x86_64/metalink | 16 kB 00:00:00 updates-testing/21/x86_64 | 4.9 kB 00:00:00 updates-testing/21/x86_64/updateinfo | 798 kB 00:00:01 updates-testing/21/x86_64/primary_db | 7.0 MB 00:00:04 updates-testing/21/x86_64/pkgtags | 1.3 MB 00:00:00 Dependencies Resolved ============================================================================================================================================================================================================================================== Package Arch Version Repository Size ============================================================================================================================================================================================================================================== Updating: xfce4-power-manager x86_64 1.4.2-1.fc21 /xfce4-power-manager-1.4.2-1.fc21.x86_64 3.8 M Transaction Summary ============================================================================================================================================================================================================================================== Upgrade 1 Package Total size: 3.8 M Is this ok [y/d/N]: y Downloading packages: Running transaction check Running transaction test Transaction test succeeded Running transaction (shutdown inhibited) Warning: RPMDB altered outside of yum. Updating : xfce4-power-manager-1.4.2-1.fc21.x86_64 1/2 Cleanup : xfce4-power-manager-1.4.1-3.fc21.x86_64 2/2 Verifying : xfce4-power-manager-1.4.2-1.fc21.x86_64 1/2 Verifying : xfce4-power-manager-1.4.1-3.fc21.x86_64 2/2 Updated: xfce4-power-manager.x86_64 0:1.4.2-1.fc21 Complete! Expected results: dnf should update the installed package. Additional info: I noticed that if I use dnf update <package_rpm_downloaded> instead of dnf install <pacakge_rpm_downloaded> dnf updates the package, as expected. Q - Is this change in behavior from yum intentional?
Hi, dnf team discuss this change nowadays. We was convinced that install should just install package and never use remove sub-transaction. But it's there over and over again - users don't update packages, they install updates :). *** This bug has been marked as a duplicate of bug 1138700 ***
*** This bug has been marked as a duplicate of bug 1160950 ***