CentOS 6.4 X64 利用 yum 升级到 Oracle linux 6.4 内核

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

转载于:https://www.cnblogs.com/jicki/p/5546937.html

评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值