the command
yum updateinfo list
running well on redhat 6 and 7 as the following
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
but on redhat 5.X
I get the following results because updateinfo not defined on 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
The
yum updateinfo
option was added to the Yum security plugin for RHEL6.If you are using RHEL5, you can use
yum list updates --security
(you need to installyum-security
)You asked "why?"
It's because you provided an invalid option for your RHEL5 system, so the command prints its usage parameters instead of doing anything.
the command for redhat 5 is:
for example: