导入公钥
1
2
|
rpm --
import
https:
//www
.elrepo.org
/RPM-GPG-KEY-elrepo
.org
|
安装yum源安装到centos7
1
2
|
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
1
2
|
rpm -Uvh
http:
//www
.elrepo.org
/elrepo-release-6-6
.el6.elrepo.noarch.rpm
|
安装到centos5
1
2
|
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
有时候网络问题导致
1
2
|
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
本文转自银狐博客51CTO博客,原文链接http://blog.51cto.com/foxhound/1833628如需转载请自行联系原作者
战狐