RedHat(레드헷) 리눅스에서 yum설치 및 업그레이드시 CentOS 리포지토리 이용방법
RedHat 에서 CentOS의 yum Repository 적용하기
RedHat은 서브스크립션을 등록하기 전까지 yum 을 이용한 설치 및 업그레이가 불가능하다.
이런 경우 차선책으로 CentOS의 repository를 사용할 수 있다. RedHat과 CentOS는 커널이 같기 때문에
yum 을 통한 설치 및 업그레이드시 문제를 발생시키지 않는다.
root 로 로그인 후 해당 디렉토리로 이동하고 원본파일을 백업
# cd /etc/yum.repos.d # cp rhel-source.repo rhel-source.repo.bak
|
rhel-source.repo 내용을 편집
[base] #released updates |
내용을 수정 후 키를 import 시켜하 한다. import 시 32bit와 64bit 가 다르니 확인 후 사용하면된다.
// 32bit # rpm --import http://mirror.centos.org/centos/6/os/i386/RPM-GPG-KEY-CentOS-6
// 64bit # rpm --import http://mirror.centos.org/centos/6/os/x86_64/RPM-GPG-KEY-CentOS-6
|