Yum命令解析

字体大小: 中小 标准 ->行高大小: 标准

Yum配置文件位于/etc/yum.conf和/etc/yum.repos.d/CentOS-Base.repo目录下

使用yum时注意:必须使用root身份来执行yum;yum配置文件内的镜像站点必须能与自己进行网络连接;镜像站点越近,带宽越大越好,方便下载。

[root@localhost ~]# yum [options] COMMAND 软件

List of Commands:

install:Install package or packages on your system

update:Update package or packages on your system

remove:移出某个软件,后跟软件名称

search:Search package details for the given string 搜索某个软件或重要关键字

list:List package or groups of packages列出yum所管理的软件名称与版本,www.linuxidc.com类似于rpm –qa

info:Display details about package or group of packages,类似于rpm –qai

clean:Remove cached data 下载文件被放置在/var/cache/yum中,可以使用clean清除。

check-update:Check for available package updates

Groupinfo:Display details about package group

groupinstall   Install the packages in group on your system

grouplist:List available package groups

groupremove:Remove the packages in group from your system

groupupdate:升级整个软件群组

help:Display helpful usage message

Deplist:List package's dependencies    列出软件包的依赖关系,在使用本地源软件包进行安装时,可以查看依赖关系

Downgrade:downgrade package

Erase:Remove package or packages from your system

localinstall:Install local RPM安装本地的rpm软件包

makecache:Generate the metadata cache 生成数据缓存

provides:Find what package provides the given value 找到包提供的给定值

reinstall:reinstall package 重装软件包

repolist:Display the configured software repositories

resolvedep:Determine which package provides the given dependency

shell:Run an interactive yum shell

upgrade:Update packages taking obsoletes into account

此文章由 http://www.ositren.com 收集整理 ,地址为: http://www.ositren.com/htmls/66785.html