yum 配置文件 :etc/yum.conf
yum功能:
install:安装软件包
update:升级软件包
check-update:检查软件包的升级信息
upgrate:更新软件包
remove:卸载软件包
list:显示所有已经安装和未安装的软件包
info:查看软件包信息
clean:清除软件包一些信息
search:查看软件包依赖关系列表
deplist:查询软件包依赖关系列表
repolist:查看可用的yum源
repoinfo:查看可用yum源的信息
groupinstall:安装软件包组
groupinfo:查看软件包组的信息
grouplist:显示所有已经安装和未安装的软件包组
groupremove:卸载指定软件包组
配置yum源
cd /etc/yum.repos.d
[base]
name=163
baseurl=http://mirrors.163.com/centos/7/os/x86_64/
enabled=1
gpgcheck=1
gpgkey=file://etc/pki/rpm-gpg/RPM-GPG-KEY-CentOS-7