1. YUM 安装软件

[[email protected]]#  yum install software

2. YUM 查看已经安装的软件

[[email protected]]#  yum list installed

3. YUM 升级软件

[[email protected]]#  yum update software

4. YUM 删除软件

[[email protected]]#  yum remove software

5. YUM 只下载软件 RPM,但是不安装

6. 查看软件的所有版本:

[[email protected]]# yum provides prometheus | head -10
Loaded plugins: fastestmirror, langpacks
Loading mirror speeds from cached hostfile
prometheus-2.0.0-1.el7.smartx.x86_64 : Prometheus.
Repo        : xxxx-common

prometheus-2.0.0-2.el7.smartx.x86_64 : Prometheus.
Repo        : xxxx-common

7. yum 安装指定版本

[[email protected]]# yum install prometheus-2.2.1-1.el7.smartx.x86_64

8. yum 使用 http_proxy

[[email protected]]# tailf -10 /etc/yum.conf
proxy=http://192.168.1.1:8118
proxy_username=username
proxy_password=password

9. yum-config-manager: command not found

[[email protected]]# yum -y install yum-utils