2016-05 from–https://www.cnblogs.com/jicki/p/5546937.html
cd /etc/yum.repos.d
wget http://public-yum.oracle.com/public-yum-ol6.repo
mv CentOS-Base.repo CentOS-Base.repo.bak
mv CentOS-Debuginfo.repo CentOS-Debuginfo.repo.bak
mv CentOS-Media.repo CentOS-Media.repo.bak
mv CentOS-Media.repo CentOS-Media.repo.bak
mv CentOS-Vault.repo CentOS-Vault.repo.bak
mkdir -p /etc/pki/rpm-gpg
wget http://public-yum.oracle.com/RPM-GPG-KEY-oracle-ol6 -O /etc/pki/rpm-gpg/RPM-GPG-KEY-oracle
yum update
出现包的冲突错误
Transaction Check Error:
file /etc/issue from install of oraclelinux-release-6:6Server-4.0.4.x86_64 conflicts with file from package centos-release-6-4.el6.centos.10.x86_64
file /etc/issue.net from install of oraclelinux-release-6:6Server-4.0.4.x86_64 conflicts with file from package centos-release-6-4.el6.centos.10.x86_64
file /etc/redhat-release from install of oraclelinux-release-6:6Server-4.0.4.x86_64 conflicts with file from package centos-release-6-4.el6.centos.10.x86_64
file /etc/rpm/macros.dist from install of oraclelinux-release-6:6Server-4.0.4.x86_64 conflicts with file from package centos-release-6-4.el6.centos.10.x86_64
file /etc/system-release from install of oraclelinux-release-6:6Server-4.0.4.x86_64 conflicts with file from package centos-release-6-4.el6.centos.10.x86_64
file /etc/system-release-cpe from install of oraclelinux-release-6:6Server-4.0.4.x86_64 conflicts with file from package centos-release-6-4.el6.centos.10.x86_64
Error Summary
————-
rpm -e centos-release –nodeps
使用 rpm -e 删除包
重新
yum update
yum install kernel-uek
vi /boot/grub/menu.lst
修改
default=0
reboot