咨询热线:4006-75-4006
售前:9:00-23:30 备案:9:00-18:00 技术:7*24h
Yum: 即Yellowdog Update Modifier,是一种基于rpm的包管理工具
yum命令使用示例
显示所有仓库
yum repolist all
其中,可用的仓库为绿色(enabled),不可用仓库为红色(disabled)
显示所有的程序包
yum list all
#安装 tree 程序 yum install tree
yum update tree
yum remove tree
yum info tree
查看某一文件来自于那个程序包
yum provides /bin/mv coreutils-8.4-37.el6.x86_64 : A set of basic GNU tools commonly used in shell : scripts Repo : installed Matched from: Other : Provides-match: /bin/mv #表示/bin/mv文件来自于coreutils-8.22-18.el7.x86_64程序包
yum clean all
yum makecache
yum search php ============================================== N/S matched: php =============================================== graphviz-php.x86_64 : PHP extension for graphviz php.x86_64 : PHP scripting language for creating dynamic web sites php-bcmath.x86_64 : A module for PHP applications for using the bcmath library ...
yum deplist php
yum history
yum groupinstall # 安装包组
yum groupinstall # 安装包组 yum groupupdate #更新包组 yum grouplist #显示包组 yum groupremove #移除包组 yum groupinfo #查看包组信息 这些命令和上面的命令用法类似,只是针对于包组而言