dnfとyumについて

CentOS 8、AlmaLinux 8からdnfが導入されました。
yumに慣れていたので違和感があるのですが、dnfはyumと同じように扱って良いそうです。

yumとdnfの情報を見てみます。

同じシンボリックリンクになっておりどちらもdnf-3が実行されます。

redhatの公式ページの記載を見てみると

In Red Hat Enterprise Linux 9, software installation is ensured by DNF. Red Hat continues to support the usage of the yum term for consistency with previous major versions of RHEL. If you type dnf instead of yum, the command works as expected because both are aliases for compatibility.

Although RHEL 8 and RHEL 9 are based on DNF, they are compatible with YUM used in RHEL 7.

3.4. Package management with YUM/DNF

If you type dnf instead of yum, the command works as expected because both are aliases for compatibility.
→yumのかわりにdnf をタイプしても、期待通りに動くでしょう(互換性のあるエイリアスのため)



Author: webmaster