It is so weird, I have a centos7 VM box. Try to install dnf
because it is a dependency of another package.
Most instructions on internet is like this:
sudo yum install epel-release
sudo yum install dnf
But nothing installs. No package dnf available
Even followed DNF blog: http://dnf.baseurl.org/2016/07/01/fresh-dnf-for-rhel-7-and-centos-7/
# cat <<EOF > /etc/yum.repos.d/dnf-stack-el7.repo
[dnf-stack-el7]
name=Copr repo for dnf-stack-el7 owned by @rpm-software-management
baseurl=https://copr-be.cloud.fedoraproject.org/results/@rpm-software-management/dnf-stack-el7/epel-7-\$basearch/
skip_if_unavailable=True
gpgcheck=1
gpgkey=https://copr-be.cloud.fedoraproject.org/results/@rpm-software-management/dnf-stack-el7/pubkey.gpg
enabled=1
enabled_metadata=1
Still nothing installs
# cat /etc/centos-release
CentOS Linux release 7.4.1708 (Core)
# yum search dnf
Loading mirror speeds from cached hostfile
* base: centos.bhs.mirrors.ovh.net
* epel: mirror.umd.edu
* extras: centos.bhs.mirrors.ovh.net
* remi-safe: remi.mirror.ate.info
* updates: centos.bhs.mirrors.ovh.net
========================================================================= N/S matched: dnf ==========================================================================
dnf-langpacks.noarch : Langpacks plugin for dnf
dnf-langpacks-conf.noarch : Configuration file for DNF Langpacks plugin
etckeeper-dnf.noarch : DNF plugin for etckeeper support
python-dnf-langpacks.noarch : Langpacks plugin for dnf-2
mirrormanager2-mirrorlist.noarch : MirrorList serving mirrors to yum/dnf