1. YUM 安装软件

  1. [[email protected].io]# yum install software

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

  1. [[email protected].io]# yum list installed

3. YUM 升级软件

  1. [[email protected].io]# yum update software

4. YUM 删除软件

  1. [[email protected].io]# yum remove software

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

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

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

7. yum 安装指定版本

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

8. yum 使用 http_proxy

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

9. yum-config-manager: command not found

  1. [[email protected].io]# yum -y install yum-utils