自动解决包的依赖关系
      ==查看可用仓库
      [root@tianyun ~]# yum clean all //清空缓存及其它文件
      [root@tianyun ~]# yum makecache //重建缓存
      [root@tianyun ~]# yum repolist //查询可用的仓库
      ==安装
      # yum -y install httpd vsftpd *vnc
      # yum -y reinstall httpd
      # yum -y update httpd
      # yum -y install php
      # yum -y update
      # yum -y install /root/OpenIPMI-2.0.19-11.el7.x86_64.rpm //从本地安装
      # yum -y install https://dev.mysql.com/get/mysql57-community-release-el7-9.noarch.rpm //URL
      # yum groupinfo mariadb
      # yum -y groupinstall mariadb
      # yum -y remove httpd
      # yum -y groupremove mariadb

      ==查询(从本地 rpm数据库 和 yum源 中查询)
      # yum list httpd
      # yum list vnc
      # yum list |grep vnc
      # yum list installed
      # yum info httpd
      # yum group list
      # yum grouplist
      # yum groupinfo mariadb
      ==卸载
      [root@tianyun ~]# yum -y remove mysql-server
      [root@tianyun ~]# yum -y groupremove mysql-server
      ==history
    删除依赖
      # yum history
      # yum history info 4
      # yum history undo 4

      **扩展查询:
      例1: 从包名和包描述中查找带有关键字chinese的包
      # yum list | grep chinese //只关注软件包的名
      # yum list | grep piny
      # yum search chinese //关注软件包的名 或 描述
      cjkuni-ukai-fonts.noarch : Chinese Unicode TrueType font in Kai face
      cjkuni-uming-fonts.noarch : Chinese Unicode TrueType font in Ming face
      # yum search “http server”
      # yum search “web server”
      例2:查找/etc/vsftpd/vsftpd.conf属由哪个包提供?
      [root@server0 ~]# yum provides /etc/vsftpd/vsftpd.conf
      Loaded plugins: langpacks
      vsftpd-3.0.2-9.el7.x8664 : Very Secure Ftp Daemon
      Repo : classroom_content_rhel7.0_x86_64_dvd

      Matched from:
      Filename : /etc/vsftpd/vsftpd.conf
      [root@server0 ~]# yum -y install vsftpd-3.0.2-9.el7.x86_64
      例3:查找vsftpd.conf属由哪个包提供?
      [root@tianyun ~]# yum provides vsftpd/vsftpd.conf
      [root@server0 ~]# yum provides
    /vsftpd.conf
      [root@server0 ~]# yum provides /vsftpd.
      例4:查找命令vim属由哪个包提供?
      [root@server0 ~]# vim
      bash: vim: command not found…
      [root@server0 ~]#
      [root@server0 ~]# yum provides vim
      Loaded plugins: langpacks
      XXXXXXXX.el7.x86_64 : A program for plotting mathematical expressions and data
      例5:查找命令pip属由哪个包提供?
      [root@server0 ~]# pip
      bash: pip: command not found…
      [root@server0 ~]# yum -y install pip
      例6:查找命令vim属由哪个包提供?**
      [root@tianyun ~]# yum provides vim
      vim /etc/yum.repos.d/CentOS-Base.repo
      yum -y install epel-release
      vim /etc/yum.repos.d/epel.repo
      baseurl=http://download.fedoraproject.org/pub/epel/7/$basearch
      #metalink=https://mirrors.fedoraproject.org/metalink?repo=epel-7&arch=$basearch