导入公钥
rpm --import https://www.elrepo.org/RPM-GPG-KEY-elrepo.org
安装yum源安装到centos7
rpm -Uvh http://www.elrepo.org/elrepo-release-7.0-2.el7.elrepo.noarch.rpm
安装内核(7的用kernel-ml)
yum --enablerepo=elrepo-kernel install kernel-ml
安装到centos6
rpm -Uvh http://www.elrepo.org/elrepo-release-6-6.el6.elrepo.noarch.rpm
安装到centos5
rpm -Uvh http://www.elrepo.org/elrepo-release-5-5.el5.elrepo.noarch.rpm
安装内核(5/6 的用kernel-lt)
yum --enablerepo=elrepo-kernel install kernel-lt
有时候网络问题导致
No package kernel-ml* available. Error: Nothing to do
那就手动下载rpm包,手动安装,指定启动顺序
wget http://elrepo.org/linux/kernel/el7/x86_64/RPMS/kernel-ml-4.6.4-1.el7.elrepo.x86_64.rpm
rpm -ivh kernel-ml-4.6.4-1.el7.elrepo.x86_64.rpm
grub2-set-default ‘CentOS Linux (4.4.2-1.el7.elrepo.x86_64) 7 (Core) with debugging‘
[root@abc boot]# grub2-editenv list saved_entry=CentOS Linux (4.4.2-1.el7.elrepo.x86_64) 7 (Core) with debugging
本文出自 “银狐” 博客,请务必保留此出处http://foxhound.blog.51cto.com/1167932/1833628
原文地址:http://foxhound.blog.51cto.com/1167932/1833628