我需要一些帮助,因为我真的很难理解一个问题。
我想列出仅在 CentOS 6 上需要通过 yum 更新的安全包。
我下载了旧版本的 CentOS 6
[root@server ~]# cat /etc/redhat-release
CentOS Linux release 6.0 (Final)
[root@server ~]# uname -a
Linux server 2.6.32-71.el6.x86_64 #1 SMP Fri May 20 03:51:51 BST 2011 x86_64 x86_64 x86_64 GNU/Linux
Run Code Online (Sandbox Code Playgroud)
然后我安装了
[root@server ~]# yum install yum-plugin-security
Run Code Online (Sandbox Code Playgroud)
现在我希望能够运行
[root@server ~]# yum updateinfo summary
Loaded plugins: fastestmirror, presto, security
Loading mirror speeds from cached hostfile
* base: centos.schlundtech.de
* extras: centosmirror.netcup.net
* updates: centos.mirror.net-d-sign.de
updateinfo summary done
Run Code Online (Sandbox Code Playgroud)
或者
[root@server ~]# yum --security check-update
Loaded plugins: fastestmirror, presto, security
Loading mirror speeds from cached hostfile
* base: centos.schlundtech.de
* extras: centosmirror.netcup.net
* updates: centos.mirror.net-d-sign.de
Limiting package lists to security relevant ones
No packages needed for security; 174 packages available
Run Code Online (Sandbox Code Playgroud)
并接收存在需要更新的安全问题的软件包列表。如您所见,它没有显示任何内容。
我要疯了吗?Yum update 列出了 173 个更新的软件包,但没有一个与安全相关?
与 RHEL 相反,CentOS 不会在软件包上标记安全性:因此,除了 EPEL 之外,您不会获得仅安全性的更新,正如 CentOS 论坛上解释此答案的那样:how to install security patch in Centos
\n\n\n\n\n回复: 如何在 Centos 中安装安全补丁
\n\n发布者 TrevorH \xc2\xbb 2016/09/19 09:32:02
\n\n只需定期运行 yum update,您就会自动获取安全更新。
\n\n如果您指的是运行 yum --security update 的能力,那么您就不走运了,因为 CentOS 没有在 yum 存储库中提供必要的数据来允许 yum -plugin-security 插件工作。根本不。这是行不通的。
\n
请注意,TrevorH 是CentOS 团队的一员,致力于 Fora(即:论坛)
\n