「Dandified Yum」
ソフトウェアパッケージの管理を行うプログラムの一つで、「yum」の後継版

各種リポジトリからパッケージを管理します

まずリポジトリですが、rockylinux9で標準で用意されているリポジトリは下記から調べられます。

[root@rockylinux9 ~]# dnf repolist --all
repo id                                   repo name                                                                                    status
appstream                                 Rocky Linux 9 - AppStream                                                                    enabled
appstream-debuginfo                       Rocky Linux 9 - AppStream - Debug                                                            disabled
appstream-source                          Rocky Linux 9 - AppStream - Source                                                           disabled
baseos                                    Rocky Linux 9 - BaseOS                                                                       enabled
baseos-debuginfo                          Rocky Linux 9 - BaseOS - Debug                                                               disabled
baseos-source                             Rocky Linux 9 - BaseOS - Source                                                              disabled
crb                                       Rocky Linux 9 - CRB                                                                          disabled
crb-debuginfo                             Rocky Linux 9 - CRB - Debug                                                                  disabled
crb-source                                Rocky Linux 9 - CRB - Source                                                                 disabled
devel                                     Rocky Linux 9 - Devel WARNING! FOR BUILDROOT ONLY DO NOT LEAVE ENABLED                       disabled
devel-debuginfo                           Rocky Linux 9 - Devel Debug WARNING! FOR BUILDROOT ONLY DO NOT LEAVE ENABLED                 disabled
devel-source                              Rocky Linux 9 - Devel Source WARNING! FOR BUILDROOT ONLY DO NOT LEAVE ENABLED                disabled
extras                                    Rocky Linux 9 - Extras                                                                       enabled
extras-debuginfo                          Rocky Linux 9 - Extras Debug                                                                 disabled
extras-source                             Rocky Linux 9 - Extras Source                                                                disabled
highavailability                          Rocky Linux 9 - High Availability                                                            disabled
highavailability-debuginfo                Rocky Linux 9 - High Availability - Debug                                                    disabled
highavailability-source                   Rocky Linux 9 - High Availability - Source                                                   disabled
nfv                                       Rocky Linux 9 - NFV                                                                          disabled
nfv-debuginfo                             Rocky Linux 9 - NFV Debug                                                                    disabled
nfv-source                                Rocky Linux 9 - NFV Source                                                                   disabled
plus                                      Rocky Linux 9 - Plus                                                                         disabled
plus-debuginfo                            Rocky Linux 9 - Plus - Debug                                                                 disabled
plus-source                               Rocky Linux 9 - Plus - Source                                                                disabled
resilientstorage                          Rocky Linux 9 - Resilient Storage                                                            disabled
resilientstorage-debuginfo                Rocky Linux 9 - Resilient Storage - Debug                                                    disabled
resilientstorage-source                   Rocky Linux 9 - Resilient Storage - Source                                                   disabled
rt                                        Rocky Linux 9 - Realtime                                                                     disabled
rt-debuginfo                              Rocky Linux 9 - Realtime Debug                                                               disabled
rt-source                                 Rocky Linux 9 - Realtime Source                                                              disabled
sap                                       Rocky Linux 9 - SAP                                                                          disabled
sap-debuginfo                             Rocky Linux 9 - SAP Debug                                                                    disabled
sap-source                                Rocky Linux 9 - SAP Source                                                                   disabled
saphana                                   Rocky Linux 9 - SAPHANA                                                                      disabled
saphana-debuginfo                         Rocky Linux 9 - SAPHANA Debug                                                                disabled
saphana-source                            Rocky Linux 9 - SAPHANA Source                                                               disabled
[root@rockylinux9 ~]#

っで初めは「appstream」「baseos」「extras」が有効になってます。
これらリポジトリの中に入っていないパッケージも当然ありまして、必要に応じてそのパッケージが入っているリポジトリを入れたりします。
主な追加のリポジトリとしては、「epel」でしょうか。
リポジトリに入っていないアプリは、自分でコンパイルするとかでしょうか

「epel」のリポジトリのインストールは

[root@rockylinux9 ~]# dnf install epel-release
Last metadata expiration check: 0:39:36 ago on Sat 20 Sep 2025 08:37:07 PM JST.
Dependencies resolved.
===============================================================================================================================================
 Package                               Architecture                    Version                           Repository                       Size
===============================================================================================================================================
Installing:
 epel-release                          noarch                          9-7.el9                           extras                           19 k
 
Transaction Summary
===============================================================================================================================================
Install  1 Package
 
Total download size: 19 k
Installed size: 26 k
Is this ok [y/N]: y
Downloading Packages:
epel-release-9-7.el9.noarch.rpm                                                                                270 kB/s |  19 kB     00:00
-----------------------------------------------------------------------------------------------------------------------------------------------
Total                                                                                                           38 kB/s |  19 kB     00:00
Running transaction check
Transaction check succeeded.
Running transaction test
Transaction test succeeded.
Running transaction
  Preparing        :                                                                                                                       1/1
  Installing       : epel-release-9-7.el9.noarch                                                                                           1/1
  Running scriptlet: epel-release-9-7.el9.noarch                                                                                           1/1
Many EPEL packages require the CodeReady Builder (CRB) repository.
It is recommended that you run /usr/bin/crb enable to enable the CRB repository.
 
  Verifying        : epel-release-9-7.el9.noarch                                                                                           1/1
 
Installed:
  epel-release-9-7.el9.noarch
 
Complete!
[root@rockylinux9 ~]#

にて行えます。つまりは「epel-release」は 「extras」に予め準備されているとなります。
あと、「Many EPEL packages require the CodeReady Builder (CRB) repository.」とありますので、epelを有効にしたら「crb」リポジトリも有効にしましょう

[root@rockylinux9 ~]# dnf config-manager --enable crb
 
[root@rockylinux9 ~]# dnf repolist
repo id                                        repo name
appstream                                      Rocky Linux 9 - AppStream
baseos                                         Rocky Linux 9 - BaseOS
crb                                            Rocky Linux 9 - CRB
epel                                           Extra Packages for Enterprise Linux 9 - x86_64
epel-cisco-openh264                            Extra Packages for Enterprise Linux 9 openh264 (From Cisco) - x86_64
extras                                         Rocky Linux 9 - Extras
[root@rockylinux9 ~]#

dnf copr

Copr (Cool Other Package Repo)
Fedora プロジェクトが運営しているビルドサービスで、開発者や有志が自分のパッケージをビルドして公開。それを利用するって流れ。

公式リポジトリに入っていないソフトウェアや、新しいバージョンを試したいとき、他のユーザでそのビルドが公開していればそれを簡単に利用できる仕組みらしい.
っでどんなアプリがあるかは、下記のURLで調べられる.
https://copr.fedorainfracloud.org/

例えばコンテナのincusを導入したい場合、デフォのリポジトリにはないので、ここで調べると
2025y09m20d_213804518.png
と掲示される。ここでリポジトリ登録に必要な ユーザ と プロジェクトが分かる。この場合は「neil」「incus」となる。

なので

[root@rockylinux9 ~]# dnf copr enable neil/incus
Enabling a Copr repository. Please note that this repository is not part
of the main distribution, and quality may vary.
 
The Fedora Project does not exercise any power over the contents of
this repository beyond the rules outlined in the Copr FAQ at
<https://docs.pagure.org/copr.copr/user_documentation.html#what-i-can-build-in-copr>,
and packages are not held to any quality or security level.
 
Please do not file bug reports about these packages in Fedora
Bugzilla. In case of problems, contact the owner of this repository.
 
Do you really want to enable copr.fedorainfracloud.org/neil/incus? [y/N]: y     <--- 個人やグループが提供するため品質はまちまちを承知するならY
Repository successfully enabled.
[root@rockylinux9 ~]#

っで「dnf repolist」を見ると追加されている事が分かる

[root@rockylinux9 ~]# dnf repolist
repo id                                                   repo name
appstream                                                 Rocky Linux 9 - AppStream
baseos                                                    Rocky Linux 9 - BaseOS
copr:copr.fedorainfracloud.org:neil:incus                 Copr repo for incus owned by neil    <--- coprで追加されたリポジトリ
crb                                                       Rocky Linux 9 - CRB
epel                                                      Extra Packages for Enterprise Linux 9 - x86_64
epel-cisco-openh264                                       Extra Packages for Enterprise Linux 9 openh264 (From Cisco) - x86_64
extras                                                    Rocky Linux 9 - Extras
[root@rockylinux9 ~]#

「copr:copr.fedorainfracloud.org:neil:incus」リポジトリで提供しているパッケージは「dnf list available --disablerepo=* --enablerepo=copr:copr.fedorainfracloud.org:neil:incus」で確認できます

dnf module

RHEL9系以降は非推奨のようです
同じパッケージの複数バージョンの取り扱いが楽に行けたのですが、辞めるみたい。
現状では下記のパッケージで取り扱いがあります。

[root@rockylinux9 ~]# dnf module list
 :
Name        Stream  Profiles                                               Summary
mariadb     10.11   client, galera, server [d]                             MariaDB Module
maven       3.8     common [d]                                             Java project management and project comprehension tool
maven       3.9     common [d], openjdk11, openjdk17, openjdk21, openjdk8  Java project management and project comprehension tool
mysql       8.4     api, client, filter, server [d]                        MySQL Module
nginx       1.22    common [d]                                             nginx webserver
nginx       1.24    common [d]                                             nginx webserver
nginx       1.26    common [d]                                             nginx webserver
nodejs      18      common [d], development, minimal, s2i                  Javascript runtime
nodejs      20      common [d], development, minimal, s2i                  Javascript runtime
nodejs      22      common [d], development, minimal, s2i                  Javascript runtime
php         8.1     common [d], devel, minimal                             PHP scripting language
php         8.2     common [d], devel, minimal                             PHP scripting language
php         8.3     common [d], devel, minimal                             PHP scripting language
postgresql  15      client, server [d]                                     PostgreSQL server and client module
postgresql  16      client, server [d]                                     PostgreSQL server and client module
redis       7       common [d]                                             Redis persistent key-value database
ruby        3.1     common [d]                                             An interpreter of object-oriented scripting language
ruby        3.3     common [d]                                             An interpreter of object-oriented scripting language
 
Rocky Linux 9 - CRB
Name        Stream  Profiles                                               Summary
swig        4.1     common [d], complete                                   Connects C/C++/Objective C to some high-level programming languages
 
Hint: [d]efault, [e]nabled, [x]disabled, [i]nstalled
[root@rockylinux9 ~]#

今後は
「AppStream の個別パッケージ」、「コンテナ環境」、「Flatpak / snap」、「Software Collections (SCL の代替手段)」で提供するそうな.

最新の60件
2025-11-09 2025-11-05 2025-11-03 2025-11-02 2025-10-31 2025-10-30 2025-10-29 2025-10-28 2025-10-26 2025-10-25 2025-10-24 2025-10-22 2025-10-21 2025-10-17 2025-10-13 2025-10-12 2025-10-11 2025-10-06 2025-10-05 2025-10-01 2025-09-30 2025-09-29 2025-09-28 2025-09-25 2025-09-24 2025-09-23 2025-09-21 2025-09-20 2025-09-17 2025-09-14 2025-09-13 2025-09-12 2025-09-11 2025-09-01 2025-08-28 2025-08-22 2025-08-18 2025-08-17 2025-08-16

edit


トップ   編集 差分 履歴 添付 複製 名前変更 リロード   新規 一覧 検索 最終更新   ヘルプ   最終更新のRSS
Last-modified: 2025-09-21 (日) 03:38:08