[vagrant@localhost ~]$ yum info yum-utils
.......
Description:
yum-utils is a collection of utilities and examples for the yum package manager. It includes utilities by different authors that make yum easier and more powerful to use. These tools include:
: debuginfo-install, find-repos-of-install, repodiff,
: needs-restarting, package-cleanup, repoclosure,
: repo-graph, repomanage, repoquery, repo-rss, reposync,
: repotrack, show-installed, show-changed-rco, verifytree,
: yum-builddep, yum-complete-transaction, yumdownloader,
: yum-config-manager, yum-debug-dump,
: yum-debug-restore and yum-groups-manager.
[vagrant@localhost ~]$ sudo yum install yum-aliases #安装插件/etc/yum.conf
plugins=1/0 #使用/不试用所有的插件/etc/yum/pluginconf.d/aliases.conf
[main]enabled=1/0 #使用/不试用aliases插件# conffile - config. file to use# <default> = /etc/yum/aliases.conf/etc/yum/aliases.conf
FORCE --skip-broken --disableexcludes=all
up upgrade
in install
rm remove
.........
/etc/yum/aliases.conf中定义了yum很多命令的alias,比如 in => install, 这样我就可以用yum in package_name,少敲几个字,节省体力。alias到option的用处会更大些,比如上面的FORCE。乐意的话,我们也可以按照个人喜好自己定制这个aliases的配置文件。