[root@yz219 ~]# vim /etc/yum.repos.d/ambari.repo #VERSION_NUMBER=2.7.4.0--120 [ambari-2.7.4.0-120] name=ambary Version - ambari-2.7.4.0-120 baseurl=http://127.0.0.1/repo/ambari/centos7/ gpgcheck=0 gpgkey=http://127.0.0.1/repo/ambari/centos7/RPM-GPG-KEY/RPM-GPG-KEY-Jenkins enabled=1