linux yum 查看仓库、软件包和软件包组

举报
千江有水千江月 发表于 2021/09/30 16:17:01 2021/09/30
【摘要】 ECS信息规格:2vCPUs | 4GiB | kc1.large.2镜像:openEuler 20.03 64bit with ARM | 公共镜像  linux yum 查看仓库、软件包和软件包组 yum repolist all 查看已启用的仓库# yum repolist allrepo id rep...

ECS信息

  • 规格:2vCPUs | 4GiB | kc1.large.2
  • 镜像:openEuler 20.03 64bit with ARM | 公共镜像

linux yum 查看仓库、软件包和软件包组

yum repolist all 查看已启用的仓库

# yum repolist all
repo id                                          repo name                                         status
EPOL                                             EPOL                                              enabled
OS                                               OS                                                enabled
debuginfo                                        debuginfo                                         enabled
everything                                       everything                                        enabled
source                                           source                                            enabled
update                                           update                                            disabled

yum info 查看软件包信息

# yum info zsh.aarch64
Last metadata expiration check: 2:40:10 ago on Sun 26 Sep 2021 06:59:50 PM CST.
Available Packages
Name         : zsh
Version      : 5.7.1
Release      : 4.oe1
Architecture : aarch64
Size         : 2.4 M
Source       : zsh-5.7.1-4.oe1.src.rpm
Repository   : OS
Summary      : A shell designed for interactive use
URL          : http://zsh.sourceforge.net
License      : MIT
Description  : The zsh is a shell designed for interactive use, and it is also a powerful scripting language. Many of
             : the useful features of bash, ksh, and tcsh were incorporated into zsh. It can match files by file extension
             : without running an external program, share command history with any shell, and more.

Name         : zsh
Version      : 5.7.1
Release      : 4.oe1
Architecture : aarch64
Size         : 2.4 M
Source       : zsh-5.7.1-4.oe1.src.rpm
Repository   : everything
Summary      : A shell designed for interactive use
URL          : http://zsh.sourceforge.net
License      : MIT
Description  : The zsh is a shell designed for interactive use, and it is also a powerful scripting language. Many of
             : the useful features of bash, ksh, and tcsh were incorporated into zsh. It can match files by file extension
             : without running an external program, share command history with any shell, and more.


yum grouplist 查看系统中所有的软件包组

在安装系统时,可以勾选需要安装的软件包组

# yum grouplist 
Last metadata expiration check: 2:41:10 ago on Sun 26 Sep 2021 06:59:50 PM CST.
Available Environment Groups:
   Server
   Virtualization Host
Installed Environment Groups:
   Minimal Install
Available Groups:
   Container Management
   Development Tools
   Headless Management
   Legacy UNIX Compatibility
   Network Servers
   Scientific Support
   Security Tools
   System Tools
   Smart Card Support

yum 查看Network Servers软件包组中的软件包信息

yum groupinfo 'Network Servers'
Last metadata expiration check: 2:42:44 ago on Sun 26 Sep 2021 06:59:50 PM CST.

Group: Network Servers
 Description: These packages include network-based servers such as DHCP, Kerberos and NIS.
 Mandatory Packages:
   dhcp-server
   krb5-server
 Default Packages:
   dnsmasq
   freeradius
 Optional Packages:
   libreswan
   radvd
   rsyslog-gnutls
   rsyslog-gssapi
   rsyslog-mysql
   rsyslog-pgsql
   rsyslog-relp
   tang
   tftp-server

帮助文档(部分)

# yum help
usage: yum [options] COMMAND

List of Main Commands:

alias                     List or create command aliases
autoremove                remove all unneeded packages that were originally installed as dependencies
check                     check for problems in the packagedb
check-update              check for available package upgrades
clean                     remove cached data
deplist                   List package's dependencies and what packages provide them
distro-sync               synchronize installed packages to the latest available versions
downgrade                 Downgrade a package
group                     display, or use, the groups information
help                      display a helpful usage message
history                   display, or use, the transaction history
info                      display details about a package or group of packages
install                   install a package or packages on your system

......

学习资料

欢迎各位同学一起来交流学习心得^_^

【版权声明】本文为华为云社区用户原创内容,转载时必须标注文章的来源(华为云社区)、文章链接、文章作者等基本信息, 否则作者和本社区有权追究责任。如果您发现本社区中有涉嫌抄袭的内容,欢迎发送邮件进行举报,并提供相关证据,一经查实,本社区将立刻删除涉嫌侵权内容,举报邮箱: cloudbbs@huaweicloud.com
  • 点赞
  • 收藏
  • 关注作者

评论(0

0/1000
抱歉,系统识别当前为高风险访问,暂不支持该操作

全部回复

上滑加载中

设置昵称

在此一键设置昵称,即可参与社区互动!

*长度不超过10个汉字或20个英文字符,设置后3个月内不可修改。

*长度不超过10个汉字或20个英文字符,设置后3个月内不可修改。