命令
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但在红帽5.X上
我得到以下结果,因为updateinfo没有在redhat 5上定义
# 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发布于 2016-09-07 14:31:04
yum updateinfo选项被添加到RHEL6的Yum安全插件中。
如果使用的是RHEL5,则可以使用yum list updates --security (需要安装yum-security)
你问“为什么?”
这是因为您为您的RHEL5系统提供了一个无效的选项,所以命令会打印它的使用参数,而不是执行任何操作。
发布于 2016-09-07 14:41:35
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
.
.
.https://serverfault.com/questions/801600
复制相似问题