티스토리 뷰

EPEL 저장소 셋팅

yum install epel-release -y


REMI 저장소 셋팅

RHEL 7/CentOS 7

rpm -Uvh http://mirror.premi.st/epel/7/x86_64/e/epel-release-7-5.noarch.rpm

rpm -Uvh http://rpms.famillecollet.com/enterprise/remi-release-7.rpm

RHEL 6/CentOS 6

rpm -Uvh http://rpms.famillecollet.com/enterprise/remi-release-6.rpm

RHEL 5/CentOS 5

rpm -Uvh http://rpms.famillecollet.com/enterprise/remi-release-5.rpm


PHP 설치시 --enablerepo=remi 생략법

PHP 5.6 을 CentOS 6 에 설치하는 레퍼런스를 구글링해서 찾으면 대개

$ yum install -y php-fpm php php-devel php-mysql --enablerepo=remi-php56

와 같이 사용 저장소=remi-php56 과 같이 명령마다 번거롭게 해야하는데
생략하는 방법은


$ vi /etc/yum.repos.d/remi.repo

각 [섹션] 항목 중 사용할 저장소는 enabled=1 로 수정 하는것.


예) PHP 5.6 사용시는

[remi-php56]

......

enabled=1

......


이후부터는

$ yum install -y php php-fpm php-devel php-mysql

과 같이 명령을 주면 최신버젼이 설치된다.


참고


댓글