I just started using CentOS 9, but I use version 7.9 in a work environment. I am somewhat antiquated and slow to change... I use ifconfig, kill -9, and yum....

I did a yum install dnf successfully in RHEL 7.9; should I start using dnf in place of how I've used yum, while still using RHEL 7.9 ?

  • dnf update
  • dnf install
  • dnf remove
  • dnf clean all
  • dnf history sync

1 Answer 1


You can do it the other way and use yum in CentOS 9. DNF was introduced in Fedora and RHEL 8 planned to switch to DNF but to make it less confusing DNF was renamed to YUM 4 in RHEL 8 and the yum command is still available in RHEL both 8 and 9 (yum is only a symlink to dnf on RHEL/CentOS 9).

Most of the commands work the same way with both dnf/yum on RHEL 8/9 and the "old" yum on RHEL 7 so if your goal is to be able to use the same command in both 7 and 9 (and possibly 8) you can use yum update/install/remove... everywhere.

DNF (or YUM 4) available in RHEL 7 is only technological preview, so it is possible you will encounter some bugs or issues that you wouldn't encounter with YUM.

  • Like using service <name> start basically invokes systemctl start <name> , in rhel/centos 9 yum and dnf are still 2 separate entities correct?
    – ron
    Commented Sep 8, 2022 at 19:16
  • No, on RHEL yum is literally just symlink to dnf. (I had it wrong initially, because in Fedora yum used to be a separate script after yum was replaced by dnf, but looks like in RHEL it was always just a symlink, I checked with the latest CentOS 8 image.) Commented Sep 8, 2022 at 19:29

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .