Linux dnf安装失败,怎么解决?

安装时提示没有ndf包,怎么解决?

图片说明

dnf好像是从fedora23开始使用的,然后centos不知道应用过去没有。

如果你要安装dnf,可以访问:https://fedoraproject.org/wiki/DNF?rd=Dnf

On CentOS 6, you will get a "No package dnf available" notice after you have run the commands above, because the DNF program has not been added into the EPEL 6.x Yum repo. You would need to build DNF from source.
如果是CentOS6,你需要下载源码自己编译安装

CentOS7上可以

 sudo yum install epel-release
sudo yum install dnf