命令
yum updateinfo list
在 redhat 6 和 7 上运行良好,如下所示
yum updateinfo list
Loaded plugins: product-id, rhnplugin, subscription-manager
This system is receiving updates from RHN Classic or Red Hat Satellite.
RHEA-2015:2461 enhancement Red_Hat_Enterprise_Linux-Release_Notes-7-en-US- 7-2.el7.noarch
RHBA-2015:2371 bugfix alsa-tools-firmware-1.0.28-2.el7.x86_64
RHBA-2015:2403 bugfix authconfig-6.2.8-10.el7.x86_64
RHBA-2015:2144 bugfix bash-4.2.46-19.el7.x86_64
但在 redhat 5.X 上
我得到以下结果,因为 redhat 5 上没有定义 updateinfo
# yum updateinfo list
Loaded plugins: rhnplugin, security
This system is receiving updates from RHN Classic or RHN Satellite.
usage: yum [options] COMMAND
List of Commands:
check-update Check for available package updates
clean Remove cached data
deplist List a package's dependencies
downgrade downgrade a package
erase Remove a package or packages from your system
groupinfo Display details about a package group
groupinstall Install the packages in a group on your system
答案1
该yum updateinfo
选项已添加到 RHEL6 的 Yum 安全插件中。
如果你使用的是 RHEL5,你可以使用yum list updates --security
(需要安装yum-security
)
你问“为什么?”
这是因为您为 RHEL5 系统提供了无效的选项,因此该命令会打印其使用参数而不是执行任何操作。
答案2
Redhat 5 的命令是:
yum list-sec
- 列出所有可用的勘误表但不安装它们
例如:
yum list-sec
Loaded plugins: rhnplugin, security
This system is receiving updates from RHN Classic or RHN Satellite.
RHBA-2014:1368 bugfix at-3.1.8-84.el5_11.1.i386
RHBA-2014:1209 bugfix cpp-4.1.2-55.el5.i386
RHBA-2015:0064 bugfix cups-1:1.3.7-32.el5_11.i386
RHBA-2015:0064 bugfix cups-libs-1:1.3.7-32.el5_11.i386
RHBA-2014:1868 bugfix device-mapper-1.02.67-2.el5_11.1.i386
RHBA-2014:1868 bugfix device-mapper-event-1.02.67-2.el5_11.1.i386
RHBA-2014:1228 bugfix device-mapper-multipath-0.4.7-63.el5.i386
.
.
.