升级Linux内核到指定版本

本文介绍了如何在Linux系统中检查可用的内核版本,并使用yum安装指定版本的内核。如果所需内核不在列表中,可以通过Koji下载并手动安装。建议始终使用Fedora提供的最新稳定内核版本。最后,为了防止自动更新内核,需要修改yum配置文件,阻止内核更新,并设置默认启动新内核。

摘要生成于 C知道 ,由 DeepSeek-R1 满血版支持, 前往体验 >

You can use yum and list all kernel versions that are available (from the enabled repositories at your system) with the following command

yum list --showduplicates kernel

If the kernel you want is on the list, you can install it directly with yum.

yum install kernel-<and the version here>

If you want another kernel that is not listed, you can search at Koji download and install with rpm --oldpackage (as indicated at the link you've provided

or you can even try yum.

You have to know that,

It is stronly recommended, always using the latest stable kernel version that Fedora provides.

Last, but not least, you should exclude the kernel updates from yum, through the /etc/yum.conf file.

Append

exclude=kernel

at the end of the file. This should do the trick. That way, yum will not update the kernel(eg 3.14 version) with the latest (eg 3.15) version.

change the default from 1 to 0 to use the new kernel. If you don't change this, the system is still using the old kernel.

评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值