RHEL/CentOS 5,6,7 에 EPEL 과 Remi Repository 설치하기
업데이트되지 않는 문서입니다. 대신 remi 저장소(repository) 설치하기 와 EPEL YUM 저장소 추가 를 참고하세요.
개요
EPEL (Extra Packages for Enterprise Linux) 은 Fedora Project 에서 제공되는 저장소로 각종 패키지의 최신 버전을 제공하는 community 기반의 저장소이다.
RHEL 의 패키지 정책은 보수적이고 안정성이 최우선이라 패키지 업데이트가 잘 되지 않는다.
최신 버전의 패키지를 사용하고 싶은 경우는 (Ex. MySQL5.5, PHP 5.4 ) epel 이나 remi repository 를 등록하고 이 저장소를 통해서 설치하면 된다.
Installing the epel repository
CentOS 8 / RHEL 8
yum install https://dl.fedoraproject.org/pub/epel/epel-release-latest-8.noarch.rpm
CentOS 7 / RHEL 7
yum install https://dl.fedoraproject.org/pub/epel/epel-release-latest-7.noarch.rpm
CentOS 6 / RHEL 6
yum install https://archives.fedoraproject.org/pub/archive/epel/6/x86_64/Packages/e/epel-release-6-8.noarch.rpm
EPEL 에서 제공하는 유용한 패키지들
package | description | |
---|---|---|
apachetop | ApacheTop watches a logfile generated by Apache (in standard common or | |
atop | An advanced interactive monitor for Linux-systems to view the load on | |
munin | Munin is a highly flexible and powerful solution used to create graphs | |
ntop | ntop is a network traffic probe that shows the network usage, similar to what |
Remi repository 설치
Remi는 LAMP 기반의 최신 패키지를 제공하는 repository이다.
remi 저장소는 설치해도 기본적으로 활성화 되지 않으므로 yum 사용시 --enablerepo=remi 를 추가하거나 /etc/yum.repos.d/remi.repo 에서 enabled=1 로 설정해야 한다.
RHEL 8/CentOS 8
yum install https://rpms.remirepo.net/enterprise/remi-release-8.rpm
RHEL 7/CentOS 7
7에서 Remi 저장소를 사용하기 위해서는 epel 저장소가 설정되어야 한다.
yum install https://rpms.remirepo.net/enterprise/remi-release-7.rpm
RHEL 6/CentOS 6
yum install https://rpms.remirepo.net/enterprise/remi-release-6.rpm
repository 사용
- yum repolist 명령어로 모든 repository 가 잘 등록되었는지 확인한다.
repolist 에 보이지 않으면 /etc/yum.repos.d/{repositoryname}.repo 를 열어서 enabled= 1 로 수정한다.
## remi vim /etc/yum.repos.d/remi.repo ## epel vim /etc/yum.repos.d/epel.repo
--enablerepo 옵션으로 사용할 repository 를 지정한다.
## epel yum --enablerepo=epel info php ## remi yum --enablerepo=remi info php
같이 보기
- CentOS yum 과 Ubuntu apt Mirror를 국내 사이트로 설정하기
- yum 주요 사용법 및 고급 사용법 (history 관리, plugin 사용 등)
- RHEL/CentOS 에 php 설치
- EPEL YUM 저장소 추가