0
0

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?

More than 1 year has passed since last update.

dnfとyumの違い

Last updated at Posted at 2023-01-27

この2つはRed Hat系のLinuxディストリビューションで使われている“RPMパッケージ”を扱うためのパッケージ管理コマンド。yumの後に生まれたのがdnf。

どちらも/usr/bin/dnf-3を呼び出しているため、基本的には一緒と捉えてよさそう
/usr/bin/dnf-3の実態はpythonスクリプト

▼redhat8.5で確認

[root@test-host ~]# more /etc/redhat-release
Red Hat Enterprise Linux release 8.5 (Ootpa)
[root@test-host ~]# which yum
/usr/bin/yum
[root@test-host ~]# which dnf
/usr/bin/dnf
[root@test-host ~]# ls -l /usr/bin/yum /usr/bin/dnf
lrwxrwxrwx. 1 root root 5  9月 13  2021 /usr/bin/dnf -> dnf-3
lrwxrwxrwx. 1 root root 5  9月 13  2021 /usr/bin/yum -> dnf-3
[root@test-host ~]# ls -l /usr/bin/dnf-3
-rwxr-xr-x. 1 root root 1954  9月 13  2021 /usr/bin/dnf-3
0
0
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
0
0

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?