软件包名称-软件包版本-软件包修订次数(3.el).适用的硬件平台.扩展名
[root@szm bash]# yum -h
Loaded plugins: fastestmirror, priorities, refresh-packagekit
Usage: yum [options] COMMAND
List of Commands:
check Check for problems in the rpmdb
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
groupinfo Display details about a package group
groupinstall Install the packages in a group on your system
grouplist List available package groups
groupremove Remove the packages in a group from your system
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
repolist Display the configured software repositories—-查看软件仓库信息
resolvedep Determine which package provides the given dependency–查询软件包依赖
search Search package details for the given string
shell Run an interactive yum shell
update Update a package or packages on your system
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
-q, –quiet quiet operation
-v, –verbose verbose operation
-y, –assumeyes answer yes for all questions
–version show Yum version and exit
–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
–disableexcludes=[repo]
disable exclude from main, for a repo or for
everything
–obsoletes enable obsoletes processing during updates
–noplugins disable Yum plugins
–nogpgcheck disable gpg signature checking
–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
–setopt=SETOPTS set arbitrary config and repo options
Plugin Options:
–samearch-priorities
Priority-exclude packages based on name + arch
-localinstall安装本地rpm文件,解决依赖问题 |
zsh-html.i686 : Zsh shell manual in html format
查询软件包安装了哪些文件:
[root@szm bash]# yum whatprovides /bin/ls
-a, –all query/verify all packages
-f, –file query/verify package(s) owning file
-p, –package query/verify a package file–查询未安装rpm文件
-c, –configfiles list all configuration files
-d, –docfiles list all documentation files
-l, –list list files in package
Verify options (with -V or –verify):
-K, –checksig verify package signature(s)
–import import an armored public key
-e, –erase=<package>+ erase (uninstall) package
–force short hand for –replacepkgs –replacefiles强制安装
-F, –freshen=<packagefile>+ upgrade package(s) if already installed
-h, –hash print hash marks as package installs (good with -v)
-i, –install install package(s)
–oldpackage upgrade to an old version of the package (–force on upgrades does this(安装旧版本软件)
–test don’t install, but tell if it would work or not
-U, –upgrade=<packagefile>+ upgrade package(s)
-v, –verbose provide more detailed output
–requires (-R) list capabilities required by package(s)
–info list descriptive information from package(s)
查询所有配置文件
查询所有帮助文件:
文件属于哪个软件:
依赖关系:
依赖关系和没安装的包:
查询软件包安装文件:
rpm验证数字签名:
|
|
|
数字签名:
安装证书:
查询系统中已经安装了哪些数字证书:
验证数字证书:
MD5校验:
删除RPM包:
gpgcheck:0禁用,1启用 帮助文档:man yum.conf |
查看系统所有可用的yum安装源:
安装源软件列表缓存路径:
[root@szm Downloads]# cat /var/cache/yum
清除缓存:
[root@szm Downloads]# yum clean all
转载于:https://blog.51cto.com/2816056/1153758