[root@yz219 repo]# 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://yz219.seabox.com/repo/ambari/centos7/ gpgcheck=0 gpgkey=http://yz219.seabox.com/repo/ambari/centos7/RPM-GPG-KEY/RPM-GPG-KEY-Jenkins enabled=1