自宅サーバー ≫ Linux Server ≫ CentOS Stream 8 ≫ dnf 用リポジトリの追加

 
epel-release のインストール
Fedoraプロジェクトが提供するRHEL用にビルドされたスペシャルパッケージを 配布するEPELを追加
 
 [root@centos]#
dnf -y install epel-release
 
他リポジトリとのパッケージの競合をさけるため、enabled=0 として普段は読まないようにしておく
 
 
[root@centos]# sed -i -e "s/enabled=1/enabled=0/g" /etc/yum.repos.d/epel.repo
 
上記リポジトリを使用してインストールする場合は、以下のようにコマンド入力
 
 
[root@centos]# dnf --enablerepo=epel install ********    (******はパッケージ名
 
elrepo のインストール
各種ドライバー等提供する elrepoを追加
 
 
[root@centos]# dnf -y install elrepo-release
 
他リポジトリとのパッケージの競合をさけるため、enabled=0 として普段は読まないようにしておく
 
 
[root@centos]# sed -i -e "s/enabled=1/enabled=0/g" /etc/yum.repos.d/elrepo.repo
 
上記リポジトリを使用してインストールする場合は、以下のようにコマンド入力
 
 
[root@centos]# dnf --enablerepo=elrepo install ********    (******はパッケージ名
 
追加(Nux Dextop)リポジトリ設定ファイルの編集
Remi のインストール
 
 [root@centos]#
dnf -y install https://rpms.remirepo.net/enterprise/remi-release-8.rpm
 
他リポジトリとのパッケージの競合をさけるため、enabled=0 として普段は読まないようにしておく
 
 
[root@centos]# sed -i -e "s/enabled=1/enabled=0/g" /etc/yum.repos.d/remi-safe.repo
 
上記リポジトリを使用してインストールする場合は、以下のようにコマンド入力
 
 
[root@centos]# dnf --enablerepo=remi-safe install ********    (******はパッケージ名
 
Nux Dextop のインストール
 
 [root@centos]#
rpm --import http://li.nux.ro/download/nux/RPM-GPG-KEY-nux.ro
 [root@centos]#
rpm -Uvh http://li.nux.ro/download/nux/dextop/el7/x86_64
                                                   
/nux-dextop-release-0-1.el7.nux.noarch.rpm
 
他リポジトリとのパッケージの競合をさけるため、enabled=0 として普段は読まないようにしておく
 
 
[root@centos]# sed -i -e "s/enabled=1/enabled=0/g" /etc/yum.repos.d/nux-dextop.repo
 
上記リポジトリを使用してインストールする場合は、以下のようにコマンド入力
 
 
[root@centos]# dnf --enablerepo=nux-dextop install ********    (******はパッケージ名
 
有効なリポジトリの一覧表示
 
 
[root@centos]# dnf repolist
  repo id                         repo の名前
 appstream                       CentOS Stream 8 - AppStream
 baseos                          CentOS Stream 8 - BaseOS
 epel-modular                    Extra Packages for Enterprise Linux Modular 8 - x86_64
 extras                          CentOS Stream 8 - Extras
 remi-modular                    Remi's Modular repository for Enterprise Linux 8 - x86_64
 
上記のように公式リポジトリだけが有効になっている
無効なリポジトリの一覧表示
 
 
[root@centos]# dnf repolist disabled
  repo id                          repo の名前
 debuginfo                        CentOS Stream 8 - Debuginfo
 elrepo                           ELRepo.org Community Enterprise Linux Repository - el8
 elrepo-extras                    ELRepo.org Community Enterprise Linux Extras Repository - el8
 elrepo-kernel                    ELRepo.org Community Enterprise Linux Kernel Repository - el8
 elrepo-testing                   ELRepo.org Community Enterprise Linux Testing Repository - el8
 epel                             Extra Packages for Enterprise Linux 8 - x86_64
 epel-debuginfo                   Extra Packages for Enterprise Linux 8 - x86_64 - Debug
 epel-modular-debuginfo           Extra Packages for Enterprise Linux Modular 8 - x86_64 - Debug
 epel-modular-source              Extra Packages for Enterprise Linux Modular 8 - x86_64 - Source
 epel-playground                  Extra Packages for Enterprise Linux 8 - Playground - x86_64
 epel-playground-debuginfo        Extra Packages for Enterprise Linux 8 - Playground - x86_64 - Debug
 epel-playground-source           Extra Packages for Enterprise Linux 8 - Playground - x86_64 - Source
 epel-source                      Extra Packages for Enterprise Linux 8 - x86_64 - Source
 epel-testing                     Extra Packages for Enterprise Linux 8 - Testing - x86_64
 epel-testing-debuginfo           Extra Packages for Enterprise Linux 8 - Testing - x86_64 - Debug
 epel-testing-modular             Extra Packages for Enterprise Linux Modular 8 - Testing - x86_64
 epel-testing-modular-debuginfo   Extra Packages for Enterprise Linux Modular 8 - Testing - x86_64 -
                                                                                             Debug
 epel-testing-modular-source      Extra Packages for Enterprise Linux Modular 8 - Testing - x86_64 -
                                                                                             Source
 epel-testing-source              Extra Packages for Enterprise Linux 8 - Testing - x86_64 - Source
 ha                               CentOS Stream 8 - HighAvailability
 media-appstream                  CentOS Stream 8 - Media - AppStream
 media-baseos                     CentOS Stream 8 - Media - BaseOS
 powertools                       CentOS Stream 8 - PowerTools
 remi                             Remi's RPM repository for Enterprise Linux 8 - x86_64
 remi-debuginfo                   Remi's RPM repository for Enterprise Linux 8 - x86_64 - debuginfo
 remi-modular-test                Remi's Modular testing repository for Enterprise Linux 8 - x86_64
 remi-safe Safe                   Remi's RPM repository for Enterprise Linux 8 - x86_64
 remi-safe-debuginfo              Remi's RPM repository for Enterprise Linux 8 - x86_64 - debuginfo
 remi-test                        Remi's test RPM repository for Enterprise Linux 8 - x86_64
 remi-test-debuginfo              Remi's test RPM repository for Enterprise Linux 8 - x86_64 -
                                                                                          debuginfo
 rt
 

戻る