内核包使用ELReo提供
1.准备ELRepo
(1)检测ELRepo是否安装
yum --disablerepo="*" --enablerepo="elrepo-kernel" list available
(2)安装ELRepo
centos6 使用
rpm --import https://www.elrepo.org/RPM-GPG-KEY-elrepo.org rpm -Uvh https://www.elrepo.org/elrepo-release-6-8.el6.elrepo.noarch.rpm
centos7 使用
rpm -Uvh https://www.elrepo.org/elrepo-release-7.0-3.el7.elrepo.noarch.rpm
2.升级内核
yum --disablerepo="*" --enablerepo="elrepo-kernel" list available
yum --enablerepo=elrepo-kernel install kernel-lt
3.查看是否成功
rpm -qa | grep -i kernel
----------------------------------------安装kernel-devel
1.下载rpm
网址
https://pkgs.org/download/kernel-devel
查看Install Howto 部分,进入对应网址,如
http://mirror.rackspace.com/elrepo/elrepo/el6/i386/RPMS/
下载对应elrepo-release*rpm
2.安装
rpm -Uvh elrepo-release*rpm yum --enablerepo=elrepo-kernel install kernel-lt-devel
3.检查
ls /usr/src/kernels
原文地址:https://www.cnblogs.com/yangxinrui/p/12121124.html
时间: 2024-10-09 17:55:21