Centos 更换内核时候 rpm -ivh 的 rpm 包保留在哪里?我要删掉~!

2016-07-15 23:00:42 +08:00
 Jestom
执行了下面这个命令来更换内核……

rpm -ivh http://vault.centos.org/6.6/centosplus/i386/Packages/kernel-2.6.32-504.3.3.el6.centos.plus.i686.rpm --force

但是我尝试好几个内核,貌似都没成功装上,只装上了一个
会不会残留下载的 rpm 包。。。在哪里
我想删掉……
2247 次点击
所在节点    问与答
6 条回复
Jestom
2016-07-15 23:05:03 +08:00
话说会不会留下 rpm 包的……
kid740246048
2016-07-15 23:26:39 +08:00
find / -name kernel-2.6.32-504.3.3.el6.centos.plus.i686.rpm
Jestom
2016-07-15 23:30:41 +08:00
@kid740246048 这样并没有找到。。。
notgod
2016-07-15 23:30:50 +08:00
这个直接远程安装的 只是缓存到本地安装后自动清理的
所以本地没有
无影响
Jestom
2016-07-15 23:31:06 +08:00
@notgod 原来是这样。。。
suduo1987
2016-07-29 16:04:34 +08:00
查看当前内核版本:

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.org

http://suduo.lofter.com/post/818dc_ae8488c

这是一个专为移动设备优化的页面(即为了让你能够在 Google 搜索结果里秒开这个页面),如果你希望参与 V2EX 社区的讨论,你可以继续到 V2EX 上打开本讨论主题的完整版本。

https://www.v2ex.com/t/292802

V2EX 是创意工作者们的社区,是一个分享自己正在做的有趣事物、交流想法,可以遇见新朋友甚至新机会的地方。

V2EX is a community of developers, designers and creative people.

© 2021 V2EX