RHEL6.5 를 Centos6.7 로 변경하기
근래 RedHat 에서 기업에 subscription 계약을 유지하지 않으면 불법이고, 법적인 불이익을 당할 수
있다는 공문을 보내고 있음. 계약 유지를 안할려면 Centos 로 변경하라는 내용도 포함.
변경하는 방법임
vi /etc/yum.repos.d/centos.repo
—————————————————————————-
[base-be]
name=CentOS-6 – Base
repo=os
baseurl=http://ftp.daum.net/centos/6/os/x86_64/
enabled=1
gpgcheck=0
gpgkey=http://ftp.daum.net/centos/6/os/x86_64/RPM-GPG-KEY-CentOS-6
[updates-be]
name=CentOS-6 – Updates
baseurl=http://ftp.daum.net/centos/6/updates/x86_64/
enable=1
gpgcheck=0
[centosplus-be]
name=CentOS-6 – Plus
baseurl=http://ftp.daum.net/centos/6/centosplus/x86_64/
enabled=1
gpgcheck=0
[extras-be]
name=CentOS-6 – Extras
baseurl=http://ftp.daum.net/centos/6/extras/x86_64/
enable=1
gpgcheck=0
[fasttrack-be]
name=CentOS-6 – Fasttrack
baseurl=http://ftp.daum.net/centos/6/fasttrack/x86_64/
enabled=1
gpgcheck=0
yum repolist
————————————————————————–
yumdownloader centos-release
yumdownloader centos-indexhtml
wget http://mirror.centos.org/centos/6.7/os/x86_64/RPM-GPG-KEY-CentOS-6
yum install centos-logos
yum update kernel kernel-devel kernel-header
rpm -e rhnsd rhn-check rhn-setup yum-rhn-plugin rhn-setup-gnome subscription-manager-firstboot
yum install plymouth plymouth-devel
rpm –import RPM-GPG-KEY-CentOS-6
yum remove rhnlib abrt-plugin-bugzilla redhat-release-notes*
rpm -e –nodeps redhat-release-server-6Server redhat-indexhtml
rpm -ivh centos-release-6-7.el6.centos.12.3.x86_64.rpm –force
rpm -ivh centos-indexhtml-6-2.el6.centos.noarch.rpm
yum install yum
subscription-manager clean
yum remove subscription-manager
yum clean all
yum upgrade -> 이부분은 상황에 따라 결정
Reboot