大网数据广告活动
服务器运维问答

Yum wants to remove and re-install my kernel. Is this safe?

· 52CE 我爱测

I am running CentOS 7 and I just ran yum update . Something in the resulting output makes me hesitate to type y to proceed with the update. Here's what it says: ====================================================================…

问题原文

原帖链接 · Lightness Races in Orbit · CC BY-SA 3.0

I am running CentOS 7 and I just ran yum update.

Something in the resulting output makes me hesitate to type y to proceed with the update.

Here's what it says:

===============================================================================================================================
 Package                           Arch                   Version                               Repository                Size
===============================================================================================================================
Installing:
 kernel                            x86_64                 3.10.0-327.36.3.el7                   updates                   33 M
Updating:
 kernel-headers                    x86_64                 3.10.0-327.36.3.el7                   updates                  3.2 M
 kernel-tools                      x86_64                 3.10.0-327.36.3.el7                   updates                  2.4 M
 kernel-tools-libs                 x86_64                 3.10.0-327.36.3.el7                   updates                  2.3 M
Removing:
 kernel                            x86_64                 3.10.0-327.13.1.el7                   @updates                 136 M

Usually, if there's an update to the kernel, it comes up as an update. This "removing" and "installing" combination makes me nervous.

Before I proceed, is this sensible? Or is there something else I should do?

已采纳解答

原帖链接 · Tim · CC BY-SA 3.0

Short version: it's fine, it's removing an old version and installing a new version.

Long version: It wants to remove version

3.10.0-327.13.1.el7

and install version

3.10.0-327.36.3.el7

Note that the one it wants to install appears to be many versions newer. I find package managers tends to delete an old version before installing a new version as that partition is small. They tend to keep a few versions between oldest and newest in case you need to roll back.

On Amazon Linux my understanding is you need to reboot to apply the new kernel, or at least that this is the easiest way.

Someone who knows more about this may correct me or provide a more full understanding.

摘自公开归档,保留原文语言,版式经整理,外部媒体与邮箱地址已移除。

资料来源与适用范围

资料来源
Server Fault
适用范围
以原帖系统、软件版本与发布日期为准(2016-12-10)
内容语言
中文;命令、路径和错误标识保留技术原文
本地收录日期
2026-11-15
授权说明
CC BY-SA 3.0

正文与所需资源由本站本地存储。查看来源及更新记录 ↗

请按适用版本和实际日志确认原因;本站没有对每一种系统或设备逐项执行文中的操作。