[root@localhost ~]# cat /etc/centos-release
CentOS release 6.4 (Final)
[root@localhost ~]# uname -r2.6.32-358.el6.x86_64
[root@localhost ~]# rpm --import https://www.elrepo.org/RPM-GPG-KEY-elrepo.org
为什么要先导入它? 答:elrepo是CentOS十分有用的稳定的软件源,与其他软件源不一样的是,这个第三方源主要是提供硬件驱动、内核更新方面的支持,
如显卡、无线网卡、内核等等,现在已经支持centos7.x+,更新较快
rpm -Uvh http://www.elrepo.org/elrepo-release-7.0-2.el7.elrepo.noarch.rpm
yum --disablerepo=“*” --enablerepo=“elrepo-kernel” list available
yum --enablerepo=elrepo-kernel install kernel-ml
cat /boot/grub2/grub.cfg |grep menuentry
grub2-set-default ‘CentOS Linux (4.17.12-1.el7.elrepo.x86_64) 7 (Core)’
grub2-editenv list
rpm -qa | grep kernel
yum remove kernel-tools-3.10.0-693.el7.x86_64 kernel-tools-libs-3.10.0-693.el7.x86_64 kernel-3.10.0-693.el7.x86_64
reboot
$cd /opt