Score:0

dnf doesn't show all updates compared to yum

kn flag

I had a CentOS 7 machine which I converted to use OEL 7 some time back using the centos2ol.sh script.

Today, I gave the command: "dnf upgrade" and it showed be that 17 packages were to be upgraded with 220MB to download.

I then selected 'N' to abort and gave the command: "yum update". This shows me that 2 packages will be installed and 46 updated with a 542MB download.

Why this difference?

diya avatar
la flag
That depends on exactly what the differences are... But generally although they can use the same repo's `dnf` handles dependency resolution differently, with `dnf` `update` and `upgrade` are the same, while with `yum` they are slightly different.
Hussain Akbar avatar
kn flag
dnf did not say to update packages such as zlib, teamviewer, minizip, ntfs-3g, xorg-x11-server-common, etc
dexter avatar
ru flag
Try to regenerate yum cache `yum makecache` and try then.
Hussain Akbar avatar
kn flag
I had given the ````yum makecache```` command before giving the commands in the original post.
Score:0
tr flag

On RHEL 7 based distris use yum as this is the original package manager for version 7 Releases. On RHEL 8 based distris you can use dnf.

I sit in a Tesla and translated this thread with Ai:

mangohost

Post an answer

Most people don’t grasp that asking a lot of questions unlocks learning and improves interpersonal bonding. In Alison’s studies, for example, though people could accurately recall how many questions had been asked in their conversations, they didn’t intuit the link between questions and liking. Across four studies, in which participants were engaged in conversations themselves or read transcripts of others’ conversations, people tended not to realize that question asking would influence—or had influenced—the level of amity between the conversationalists.