Get ready for a lot of CentOS documentation to be wrong. The dnf command is the standard as of CentOS 8. Before that everything is yum.
dnf
yum
Related: