dnf and yum show different updates
February 3, 2014 1 Comment
Problem
I have started to use dnf
in Fedora 20 more than yum
. I do miss drpm and yum ps
when using dnf but it works just fine. Today, I ran into a problem where yum
and dnf
saw different updates.
root @ codeghar [~] $ yum check-update Loaded plugins: langpacks, ps, refresh-packagekit updates/20/x86_64/metalink | 16 kB 00:00:00 updates | 4.6 kB 00:00:00 updates/20/x86_64/primary_db | 7.2 MB 00:00:02 (1/2): updates/20/x86_64/updateinfo | 660 kB 00:00:00 (2/2): updates/20/x86_64/pkgtags | 887 kB 00:00:05 NetworkManager.x86_64 1:0.9.9.0-28.git20131003.fc20 updates NetworkManager-glib.x86_64 1:0.9.9.0-28.git20131003.fc20 updates NetworkManager-openvpn.x86_64 1:0.9.9.0-0.1.git20140128.fc20 updates NetworkManager-openvpn-gnome.x86_64 1:0.9.9.0-0.1.git20140128.fc20 updates anaconda.x86_64 20.25.16-1.fc20 updates anaconda-widgets.x86_64 20.25.16-1.fc20 updates clutter.x86_64 1.16.2-3.fc20 updates curl.x86_64 7.32.0-4.fc20 updates glibc.x86_64 2.18-12.fc20 updates glibc-common.x86_64 2.18-12.fc20 updates glibc-devel.x86_64 2.18-12.fc20 updates glibc-headers.x86_64 2.18-12.fc20 updates kernel.x86_64 3.12.9-301.fc20 updates kernel-debug-devel.x86_64 3.12.9-301.fc20 updates kernel-devel.x86_64 3.12.9-301.fc20 updates kernel-headers.x86_64 3.12.9-301.fc20 updates kernel-modules-extra.x86_64 3.12.9-301.fc20 updates libcurl.x86_64 7.32.0-4.fc20 updates pango.x86_64 1.36.1-2.fc20 updates root @ codeghar [~] $ dnf check-update NetworkManager.x86_64 1:0.9.9.0-28.git20131003.fc20 updates NetworkManager-glib.x86_64 1:0.9.9.0-28.git20131003.fc20 updates clutter.x86_64 1.16.2-3.fc20 updates glibc.x86_64 2.18-12.fc20 updates glibc-common.x86_64 2.18-12.fc20 updates glibc-devel.x86_64 2.18-12.fc20 updates glibc-headers.x86_64 2.18-12.fc20 updates pango.x86_64 1.36.1-2.fc20 updates
Solution
There’s a forum post (dnf and yum seeing different updates) and one solution was to clear the caches.
root @ codeghar [~] $ yum clean expire-cache Loaded plugins: langpacks, ps, refresh-packagekit Cleaning repos: fedora updates 2 metadata files removed root @ codeghar [~] $ dnf clean expire-cache Cleaning repos: fedora updates The enabled repos were expired
I then ran check-update on both yum
and dnf
and that solved the problem. dnf check-update
needed to be run twice but it was no big deal.
root @ codeghar [~] $ dnf check-update Error: Problem with repo 'updates': Cannot prepare internal mirrorlist: Curl error: Timeout was reached for https://mirrors.fedoraproject.org/metalink?repo=updates-released-f20&arch=x86_64 root @ codeghar [~] $ dnf check-update Fedora 20 - x86_64 - Updates 3.2 MB/s | 15 MB 00:04 NetworkManager.x86_64 1:0.9.9.0-28.git20131003.fc20 updates NetworkManager-glib.x86_64 1:0.9.9.0-28.git20131003.fc20 updates NetworkManager-openvpn.x86_64 1:0.9.9.0-0.1.git20140128.fc20 updates NetworkManager-openvpn-gnome.x86_64 1:0.9.9.0-0.1.git20140128.fc20 updates anaconda.x86_64 20.25.16-1.fc20 updates anaconda-widgets.x86_64 20.25.16-1.fc20 updates clutter.x86_64 1.16.2-3.fc20 updates curl.x86_64 7.32.0-4.fc20 updates glibc.x86_64 2.18-12.fc20 updates glibc-common.x86_64 2.18-12.fc20 updates glibc-devel.x86_64 2.18-12.fc20 updates glibc-headers.x86_64 2.18-12.fc20 updates kernel.x86_64 3.12.9-301.fc20 updates kernel-debug-devel.x86_64 3.12.9-301.fc20 updates kernel-devel.x86_64 3.12.9-301.fc20 updates kernel-headers.x86_64 3.12.9-301.fc20 updates kernel-modules-extra.x86_64 3.12.9-301.fc20 updates libcurl.x86_64 7.32.0-4.fc20 updates pango.x86_64 1.36.1-2.fc20 updates root @ codeghar [~] $ yum check-update Loaded plugins: langpacks, ps, refresh-packagekit fedora/20/x86_64/metalink | 18 kB 00:00:00 updates/20/x86_64/metalink | 16 kB 00:00:00 NetworkManager.x86_64 1:0.9.9.0-28.git20131003.fc20 updates NetworkManager-glib.x86_64 1:0.9.9.0-28.git20131003.fc20 updates NetworkManager-openvpn.x86_64 1:0.9.9.0-0.1.git20140128.fc20 updates NetworkManager-openvpn-gnome.x86_64 1:0.9.9.0-0.1.git20140128.fc20 updates anaconda.x86_64 20.25.16-1.fc20 updates anaconda-widgets.x86_64 20.25.16-1.fc20 updates clutter.x86_64 1.16.2-3.fc20 updates curl.x86_64 7.32.0-4.fc20 updates glibc.x86_64 2.18-12.fc20 updates glibc-common.x86_64 2.18-12.fc20 updates glibc-devel.x86_64 2.18-12.fc20 updates glibc-headers.x86_64 2.18-12.fc20 updates kernel.x86_64 3.12.9-301.fc20 updates kernel-debug-devel.x86_64 3.12.9-301.fc20 updates kernel-devel.x86_64 3.12.9-301.fc20 updates kernel-headers.x86_64 3.12.9-301.fc20 updates kernel-modules-extra.x86_64 3.12.9-301.fc20 updates libcurl.x86_64 7.32.0-4.fc20 updates pango.x86_64 1.36.1-2.fc20 updates
Recent Comments