Yum配置文件位于/etc/yum.conf和/etc/yum.repos.d/CentOS-Base.repo目录下
使用yum时注意:必须使用root身份来执行yum;yum配置文件内的镜像站点必须能与自己进行网络连接;镜像站点越近,,带宽越大越好,方便下载。
[root@localhost~]#yum [options]COMMAND 软件
ListofCommands:
install:Installapackageorpackagesonyoursystem
update:Updateapackageorpackagesonyoursystem
remove:移出某个软件,后跟软件名称
search:Searchpackagedetailsforthegivenstring 搜索某个软件或重要关键字
list:Listapackageorgroupsofpackages列出yum所管理的软件名称与版本,类似于rpm –qa
info:Displaydetailsaboutapackageorgroupofpackages,类似于rpm –qai
clean:Removecacheddata 下载文件被放置在/var/cache/yum中,可以使用clean清除。
check-update:Checkforavailablepackageupdates
Groupinfo:Displaydetailsaboutapackagegroup
groupinstallInstallthepackagesinagrouponyoursystem
grouplist:Listavailablepackagegroups
groupremove:Removethepackagesinagroupfromyoursystem
groupupdate:升级整个软件群组
help:Displayahelpfulusagemessage
Deplist:Listapackage’sdependencies列出软件包的依赖关系,在使用本地源软件包进行安装时,可以查看依赖关系
Downgrade:downgradeapackage
Erase:Removeapackageorpackagesfromyoursystem
localinstall:InstallalocalRPM安装本地的rpm软件包
makecache:Generatethemetadatacache 生成数据缓存
provides:Findwhatpackageprovidesthegivenvalue 找到包提供的给定值
reinstall:reinstallapackage 重装软件包
repolist:Display the configured software repositories
resolvedep:Determinewhichpackageprovidesthegivendependency
shell:Runaninteractiveyumshell
upgrade:Updatepackagestakingobsoletesintoaccount
明天又会是新的一天,而我依然年轻。