查看当前内核版本:
uname -r
查看已安装内核版本:
rpm -qa | grep kernel
安装指定内核:
rpm -ivh kernel-{version}.rpm --force
移除指定内核:
yum remove kernel-{version}
禁止内核升级:
在"/etc/yum.conf"中添加:
exclude=kernel* centos-release*
注意: If there are multiple package to be excluded then separate them using a single space or comma. Also, do not add multiple exclude= lines in the configuration file because yum only considers the last exclude entry.
内核文件 Google 关键字:
kernel-{version}.rpm site:
centos.orghttp://suduo.lofter.com/post/818dc_ae8488c