下载指定版本 kernel: RPM Search kernel
下载指定版本 kernel-devel:RPM Search kernel-devel
官方 Centos 6: Index of /linux/kernel/el6/x86_64/RPMS
官方 Centos 7: Index of /linux/kernel/el7/x86_64/RPMS
1、将kernel-4.9.86-30.el7.x86_64.rpm、kernel-devel-4.9.86-30.el7.x86_64.rpm拷贝到机器任意目录,此目录下
yum -y install kernel-devel-4.9.86-30.el7.x86_64.rpm
yum