rpm软件提供组织例如redhat在构建rpm包时,使用其私钥(private key)对rpm进行签名
      client在使用其rpm包时,为了验证其合法性,可以使用redhat提供的公钥(public key)进行签名检查
      **方法一: 事先导入公钥
      [root@tianyun ~]# rpm —import /etc/pki/rpm-gpg/RPM-GPG-KEY-CentOS-7 //redhat
      [root@tianyun ~]# vim /etc/yum.repos.d/CentOS-Base.repo
      [base]
      name=CentOS-$releasever - Base
      mirrorlist=http://mirrorlist.centos.org/?release=$releasever&arch=$basearch&repo=os&infra=$infra
      #baseurl=http://mirror.centos.org/centos/$releasever/os/$basearch/
      gpgcheck=1
      **方法二: 指定公钥的位置
      [root@tianyun ~]# vim /etc/yum.repos.d/CentOS-Base.repo
      [base]
      name=CentOS-$releasever - Base
      mirrorlist=http://mirrorlist.centos.org/?release=$releasever&arch=$basearch&repo=os&infra=$infra
      #baseurl=http://mirror.centos.org/centos/$releas ever/os/$basearch/
      gpgcheck=1
      gpgkey=file:///etc/pki/rpm-gpg/RPM-GPG-KEY-CentOS-7
      **
      —nogpgcheck //不检查软件包的签名

    [root@bogon ~]# yum —help | grep check
    check Check for problems in the rpmdb
    check-update Check for available package updates
    —nogpgcheck disable gpg signature checking