LoginSignup
10
5

More than 5 years have passed since last update.

CentOS7.5にdnfをインストールする

Posted at

dnfとは?

yumの後継となるパッケージマネージャー。
Fedora18から試験運用されており、Fedora22でデフォルトのパッケージ管理ツールとされている。

dnfのwiki

yumとの違い

yumはPython2.xで動作(Python3.Xではエラー)
dnfはPython3.Xでも動作する

インストール

yum -y install wget
yum -y install epel-release
yum -y 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

確認

yumのオプションは引き継いでいるので同じ使い方でOK

dnf -y install httpd
dnf remove httpd

まとめ

近い内にはyumは無くならないだろうけど来る日に備えときましょう。
(ドキュメントとかとか)

10
5
0

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
  3. You can use dark theme
What you can do with signing up
10
5