首页
学习
活动
专区
圈层
工具
发布
社区首页 >问答首页 >redhat +列表+ redhat 5的等效命令是什么?

redhat +列表+ redhat 5的等效命令是什么?
EN

Server Fault用户
提问于 2016-09-07 14:14:29
回答 2查看 1.4K关注 0票数 -1

命令

代码语言:javascript
复制
yum updateinfo list

在redhat 6和7上运行良好,如下所示

代码语言:javascript
复制
  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上定义

代码语言:javascript
复制
  #  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
EN

回答 2

Server Fault用户

发布于 2016-09-07 14:31:04

yum updateinfo选项被添加到RHEL6的Yum安全插件中。

如果使用的是RHEL5,则可以使用yum list updates --security (需要安装yum-security)

你问“为什么?”

这是因为您为您的RHEL5系统提供了一个无效的选项,所以命令会打印它的使用参数,而不是执行任何操作。

票数 1
EN

Server Fault用户

发布于 2016-09-07 14:41:35

redhat 5的命令是:

代码语言:javascript
复制
yum list-sec
  • 列出所有可用的差事而不安装它们

例如:

代码语言:javascript
复制
 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

.
.
.
票数 1
EN
页面原文内容由Server Fault提供。腾讯云小微IT领域专用引擎提供翻译支持
原文链接:

https://serverfault.com/questions/801600

复制
相关文章

相似问题

领券
问题归档专栏文章快讯文章归档关键词归档开发者手册归档开发者手册 Section 归档