Advertisement

从原理解析为啥执行yum update两次才会升级到最新版本呢?

阅读量:

问题描述:

近期有用户在本地构建了网络资源库,将外部网络源中的安装包全部同步至yum源服务器,但在执行yum update操作时,发现系统内核版本并未直接升级至最新版本,需进行两次yum update操作才能完成更新。

通过进一步交流确认,问题源于在从外部源使用reposync同步内核相关软件包后,未对yum缓存进行更新。

原理解析:

通过Red Hat知识库:https://access.redhat.com/solutions/5904661

确认当前系统中是否已配置dnf-makecache.timer定时任务

[root@localhost ~]# systemctl list-units|grep cache

dnf-makecache.timer loaded active waiting dnf makecache --timer

检查dnf-makecache定时任务的运行状态

[root@localhost ~]# systemctl status dnf-makecache.timer

● dnf-makecache.timer - dnf makecache --timer

Loaded: loaded (/usr/lib/systemd/system/dnf-makecache.timer; en

全部评论 (0)

还没有任何评论哟~