dnfとは?
yumの後継となるパッケージマネージャー。 Fedora18から試験運用されており、Fedora22でデフォルトのパッケージ管理ツールとされている。
yumとの違い
yumはPython2.xで動作(Python3.Xではエラー) dnfはPython3.Xでも動作する
インストール
[code lang=text] 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 [/code]
確認
yumのオプションは引き継いでいるので同じ使い方でOK
[code lang=text] dnf -y install httpd dnf remove httpd [/code]
まとめ
近い内にはyumは無くならないだろうけど来る日に備えときましょう。 (ドキュメントとかとか)