AlmaLinux 8.4にリポジトリを追加する

1.標準リポジトリを追加
[root@localhost ~]# dnf -y install epel-release

AlmaLinux 8 - BaseOS                            4.7 kB/s | 4.3 kB     00:00
AlmaLinux 8 - BaseOS                            2.2 MB/s | 8.6 MB     00:03
AlmaLinux 8 - AppStream                         5.2 kB/s | 4.7 kB     00:00
略

2.標準リポジトリを最優先にする

[epel]
name=Extra Packages for Enterprise Linux $releasever - $basearch
# It is much more secure to use the metalink, but if you wish to use a local mirror
# place its address here.
#baseurl=https://download.example/pub/epel/$releasever/Everything/$basearch
metalink=https://mirrors.fedoraproject.org/metalink?repo=epel-$releasever&arch=$basearch&infra=$infra&content=$contentdir
enabled=1
priority=10  #追記

3.Remi’s RPM repositoryリポジトリを追加

[root@localhost ~]# dnf -y install https://rpms.remirepo.net/enterprise/remi-release-8.rpm
Extra Packages for Enterprise Linux 8 - x86_64                                                                   4.5 kB/s | 8.8 kB     00:01
remi-release-8.rpm
略

4.Remi’s RPM repository リポジトリを最優先にする

[root@localhost ~]# vi /etc/yum.repos.d/remi-safe.repo
[remi-safe]
name=Safe Remi's RPM repository for Enterprise Linux 8 - $basearch
#baseurl=http://rpms.remirepo.net/enterprise/8/safe/$basearch/
#mirrorlist=https://rpms.remirepo.net/enterprise/8/safe/$basearch/httpsmirror
mirrorlist=http://cdn.remirepo.net/enterprise/8/safe/$basearch/mirror
enabled=1
priority=10

5.モジュラーリポジトリを追加する
[root@localhost ~]# dnf –enablerepo=remi-modular –disablerepo=AppStream module list

AlmaLinux

Posted by arkgame