Study/Linux

EPEL

HeeWorld 2021. 12. 26. 23:36

EPEL (Extra Packages for Enterprise Linux)

- Fedora Project에서 제공되는 저장소로 각종 패키지의 최신 버전을 제공하는 커뮤니티 기반의 저장소

 

tmux를 yum으로 설치하려고 했는데, 아래와 같은 에러를 뱉어냈다.

[root@centos804 ~]# yum -y install tmux
Extra Packages for Enterprise Linux 8 - x86_64                              0.0  B/s |   0  B     00:12
Errors during downloading metadata for repository 'epel':
  - Curl error (7): Couldn't connect to server for http://192.168.1.211/pub/epel/8/Everything/x86_64/repodata/repomd.xml [Failed to connect to 192.168.1.211 port 80: No route to host]Error: Failed to download metadata for repo 'epel': Cannot download repomd.xml: Cannot download repodata/repomd.xml: All mirrors were tried

 

원인이 뭔가 싶어서 한참 구글링을 했는데, DNS 때문이다 뭐 때문이다 등등 다양한 의견은 있었는데 해결 되는건 없었다.

다음 날 매니저님한테 물어보니까 epel에 대해 간략하게 말씀해주셨는데, 정확하게 기억이 안난다.

(이제보니 error에 'epel' 메타를 다운 받는데 실패했다고 되어있는데 제대로 읽지도 않은 거 같다...)

 

Epel은 설치할 수 있는데, 설치하기 전에 repository를 통해 어떤 것들이 있는지 먼저 봤다.

내 repository에서는 epel은 찾을 수 없었다. 분명 매니저님이 설치하셨는데, 날리신건지 아직도 모르겠다.

[root@centos804 yum.repos.d]# yum repolist
Failed to set locale, defaulting to C.UTF-8
repo id                              repo name
appstream                            CentOS Stream 8 - AppStream
baseos                               CentOS Stream 8 - BaseOS
epel-modular                         Extra Packages for Enterprise Linux Modular 8 - x86_64
epel-next                            Extra Packages for Enterprise Linux 8 - Next - x86_64
extras                               CentOS Stream 8 - Extras
zabbix                               Zabbix Official Repository - x86_64
zabbix-non-supported                 Zabbix Official Repository non-supported - x86_64

 

그래서 다시 설치 했다.

[root@centos804 etc]# yum install epel-release

 

설치 하고 다시 yum repolist로 확인하니, 아까는 없었던 epel을 확인할 수 있다.

[root@centos804 yum.repos.d]# yum repolist
Failed to set locale, defaulting to C.UTF-8
repo id                              repo name
appstream                            CentOS Stream 8 - AppStream
baseos                               CentOS Stream 8 - BaseOS
epel                                 Extra Packages for Enterprise Linux 8 - x86_64
epel-modular                         Extra Packages for Enterprise Linux Modular 8 - x86_64
epel-next                            Extra Packages for Enterprise Linux 8 - Next - x86_64
extras                               CentOS Stream 8 - Extras
zabbix                               Zabbix Official Repository - x86_64
zabbix-non-supported                 Zabbix Official Repository non-supported - x86_64

 

그리고 /etc/yum.repos.d/ 경로에 epel.repo가 생긴 것을 확인할 수 있다.

[root@centos804 yum.repos.d]# ls -al
total 88
drwxr-xr-x.   2 root root 4096 Dec 26 23:46 .
drwxr-xr-x. 104 root root 8192 Dec 26 23:46 ..
-rw-r--r--.   1 root root  713 Sep 15 10:11 CentOS-Stream-AppStream.repo
-rw-r--r--.   1 root root  698 Sep 15 10:11 CentOS-Stream-BaseOS.repo
-rw-r--r--.   1 root root  316 Sep 15 10:11 CentOS-Stream-Debuginfo.repo
-rw-r--r--.   1 root root  698 Sep 15 10:11 CentOS-Stream-Extras.repo
-rw-r--r--.   1 root root  734 Sep 15 10:11 CentOS-Stream-HighAvailability.repo
-rw-r--r--.   1 root root  696 Sep 15 10:11 CentOS-Stream-Media.repo
-rw-r--r--.   1 root root  718 Sep 15 10:11 CentOS-Stream-PowerTools.repo
-rw-r--r--.   1 root root  690 Sep 15 10:11 CentOS-Stream-RealTime.repo
-rw-r--r--.   1 root root  748 Sep 15 10:11 CentOS-Stream-ResilientStorage.repo
-rw-r--r--.   1 root root 1568 Sep 15 10:11 CentOS-Stream-Sources.repo
-rw-r--r--    1 root root 1480 Jun  8  2021 epel-modular.repo
-rw-r--r--    1 root root 1588 Jun  8  2021 epel-next-testing.repo
-rw-r--r--    1 root root 1486 Jun  8  2021 epel-next.repo
-rw-r--r--    1 root root 1562 Jun  8  2021 epel-playground.repo
-rw-r--r--    1 root root 1579 Jun  8  2021 epel-testing-modular.repo
-rw-r--r--    1 root root 1516 Jun  8  2021 epel-testing.repo
-rw-r--r--    1 root root 1417 Jun  8  2021 epel.repo
-rw-r--r--    1 root root  411 Oct  2 21:20 zabbix.repo