yum 命令

Usage: yum [options] COMMAND [package ...]
用法:yum [可选参数] 命令 [包名...]

List of Commands:
命令清单:

check          Check for problems in the rpmdb 检查rpm库中的问题
check-update   Check for available package updates 检查可用的软件包更新
clean          Remove cached data 删除缓存的数据
deplist        List a package's dependencies 列出软件包的依赖关系
distribution-synchronization 
    Synchronize installed packages to the latest available versions
    将安装的软件包同步到最新的可用版本
downgrade      downgrade a package 降级包
erase          Remove a package or packages from your system 从系统中删除一个或多个软件包
fs             Acts on the filesystem data of the host, 
    mainly for removing docs/lanuages for minimal hosts.
    作用于主机的文件系统数据,主要用于删除最少主机的文档/语言。
fssnapshot     Creates filesystem snapshots, or lists/deletes current snapshots.
    创建文件系统快照,或列出/删除当前快照。
groups         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 在系统上安装一个或多个软件包
list           List a package or groups of packages 列出一个包或一组包
load-transaction load a saved transaction from filename 从文件名加载已保存的记录
makecache      Generate the metadata cache 生成缓存
provides       Find what package provides the given value 反查询命令所属软件包
reinstall      reinstall a package 重新安装软件包
repo-pkgs      Treat a repo. as a group of packages, so we can install/remove all of them 将整个库作为一组包,这样我们就可以安装/删除所有
repolist       Display the configured software repositories 显示已配置的软件存储库
search         Search package details for the given string 搜索给定字符串的软件包详细信息
shell          Run an interactive yum shell 运行交互式yum shell
swap           Simple way to swap packages, instead of using shell 交换软件包的简单方法,而不是使用shell
update         Update a package or packages on your system 更新系统上的一个或多个软件包
update-minimal 
    Works like upgrade, but goes to the 'newest' package match which fixes a problem that affects your system
    像升级一样工作,但是转到“最新”软件包匹配项,从而解决了影响系统的问题
updateinfo     Acts on repository update information 根据存储库更新信息
upgrade        Update packages taking obsoletes into account 考虑过时的更新软件包
version        Display a version for the machine and/or available repos. 显示机器或可用存储库的版本。


Options:
可选参数:
  -h, --help            show this help message and exit 显示此帮助消息并退出
  -t, --tolerant        be tolerant of errors 容忍错误
  -C, --cacheonly       run entirely from system cache, don't update cache 完全从系统缓存运行,不更新缓存
  -c [config file], --config=[config file]
                        config file location 配置文件位置
  -R [minutes], --randomwait=[minutes]
                        maximum command wait time 命令最大等待时间
  -d [debug level], --debuglevel=[debug level]
                        debugging output level 调试输出级别
  --showduplicates      show duplicates, in repos, in list/search commands 在清单/搜索命令中以仓库显示重复项
  -e [error level], --errorlevel=[error level]
                        error output level 错误输出级别
  --rpmverbosity=[debug level name]
                        debugging output level for rpm  rpm调试的输出级别
  -q, --quiet           quiet operation 静默安装
  -v, --verbose         verbose operation 显示操作详情
  -y, --assumeyes       answer yes for all questions 所有问题都选yes
  --assumeno            answer no for all questions 所有问题都选no
  --version             show Yum version and exit 显示yum版本并退出
  --installroot=[path]  set install root 设置安装根目录
  --enablerepo=[repo]   enable one or more repositories (wildcards allowed) 启用一个或多个存储库
  --disablerepo=[repo]  disable one or more repositories (wildcards allowed) 禁用一个或多个存储库
  -x [package], --exclude=[package]
                        exclude package(s) by name or glob 按名称或glob排除软件包
  --disableexcludes=[repo]
                        disable exclude from main, for a repo or for everything 禁止从主要排除
  --disableincludes=[repo]
                        disable include pkgs for a repo or for everything 
  --obsoletes           enable obsoletes processing during updates 在更新期间启用过时的处理
  --noplugins           disable Yum plugins 禁用yum插件
  --nogpgcheck          disable gpg signature checking 禁用gpg签名检查
  --disableplugin=[plugin]
                        disable plugins by name 按名称禁用插件
  --enableplugin=[plugin]
                        enable plugins by name  按名称启用插件
  --skip-broken         skip packages with depsolving problems 跳过具有依赖问题的软件包
  --color=COLOR         control whether color is used 控制台是否使用颜色
  --releasever=RELEASEVER
                        set value of $releasever in yum config and repo files 在yum配置文件中设置$ releasever的值
  --downloadonly        don't update, just download 不更新,只需下载
  --downloaddir=DLDIR   specifies an alternate directory to store packages 指定一个备用目录来存储软件包
  --setopt=SETOPTS      set arbitrary config and repo options 设置任意的配置和仓库选项
  --bugfix              Include bugfix relevant packages, in updates 在更新中包括与错误修正相关的软件包
  --security            Include security relevant packages, in updates 在更新中包括与安全相关的软件包
  --advisory=ADVS, --advisories=ADVS
                        Include packages needed to fix the given advisory, in updates
                        在更新中包括修复给定所需的软件包
  --bzs=BZS             Include packages needed to fix the given BZ, in updates
                        在更新中包括修复给定BZ所需的软件包
  --cves=CVES           Include packages needed to fix the given CVE, in updates
                        在更新中包括修复给定CVE所需的软件包
  --sec-severity=SEVS, --secseverity=SEVS
                        Include security relevant packages matching the severity, in updates
                        在更新中包括与严重性匹配的与安全相关的软件包

  • 0
    点赞
  • 0
    收藏
    觉得还不错? 一键收藏
  • 0
    评论

“相关推荐”对你有帮助么?

  • 非常没帮助
  • 没帮助
  • 一般
  • 有帮助
  • 非常有帮助
提交
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值