天天看點

如何在centos7安裝dnf軟體包

想在自己的筆記本CentOS7上安裝dnf玩玩兒,但是根據百度出來的方法沒有成功。

yum install epel-release -y

yum install dnf

現在将解決辦法轉載過來,如下:

wget http://springdale.math.ias.edu/data/puias/unsupported/7/x86_64/dnf-conf-0.6.4-2.sdl7.noarch.rpm

wget http://springdale.math.ias.edu/data/puias/unsupported/7/x86_64//dnf-0.6.4-2.sdl7.noarch.rpm

wget http://springdale.math.ias.edu/data/puias/unsupported/7/x86_64/python-dnf-0.6.4-2.sdl7.noarch.rpm

yum install python-dnf-0.6.4-2.sdl7.noarch.rpm dnf-0.6.4-2.sdl7.noarch.rpm dnf-conf-0.6.4-2.sdl7.noarch.rpm

測試有效:

cat /etc/redhat-release

dnf update