centos7系统yum安装kernel-devel
uname或者cat /etc/redhat-release
查看版本号,下面网址选择对应的版本。
https://vault.centos.org/7.3.1611/os/x86_64/Packages/
wget https://mirror.tuna.tsinghua.edu.cn/centos/7/os/x86_64/Packages/kernel-devel-3.10.0-1160.el7.x86_64.rpm && rpm -ivh kernel-devel-3.10.0-1160.el7.x86_64.rpm
安装出现error: Failed dependencies解决如下
命令加 --nodeps --force
rpm -ivh kernel-devel-3.10.0-1160.el7.x86_64.rpm --nodeps --force
rpm -q kernel-devel