Preparing The Ambari Repository Configuration File
Download the
ambari.repofile from the public repository.https://hdpweb.o.onslip.net/ambari/<OS>/2.x/updates/2.4.3.0/ambari.repowhere <OS> is centos6, centos7, sles11, sles12, ubuntu12, ubuntu14, or debian7.
Edit the ambari.repo file and replace the Ambari Base URL
baseurlobtained when setting up your local repository. Refer to step 3 in Setting Up a Local Repository with No Internet Access, or step 5 in Setting Up a Local Repository with Temporary Internet Access, if necessary.![[Note]](../common/images/admon/note.png)
Note You can disable the GPG check by setting gpgcheck =0. Alternatively, you can keep the check enabled but replace the gpgkey with the URL to the GPG-KEY in your local repository.
[Updates-Ambari-2.4.3.0]name=Ambari-2.4.3.0-Updatesbaseurl=INSERT-BASE-URLgpgcheck=1gpgkey=https://hdpweb.o.onslip.net/ambari/centos6/RPM-GPG-KEY/RPM-GPG-KEY-Jenkinsenabled=1priority=1Base URL for a Local Repository
Local Repository
Base URL
Built with Repository Tarball
(No Internet Access)
http://<web.server>/Ambari-2.4.3.0/<OS>
Built with Repository File
(Temporary Internet Access)
http://<web.server>/ambari/<OS>/Updates-Ambari-2.4.3.0 where <web.server> = FQDN of the web server host, and <OS> is centos6, centos7, sles11, sles12, ubuntu12, ubuntu14, or debian7.
Place the ambari.repo file on the machine you plan to use for the Ambari Server.
For RHEL/CentOS/Oracle Linux:
/etc/yum.repos.d/ambari.repoFor SLES:
/etc/zypp/repos.d/ambari.repoFor Debain/Ubuntu:
/etc/apt/sources.list.d/ambari.listEdit the
/etc/yum/pluginconf.d/priorities.conffile to add the following:[main]enabled=1gpgcheck=0
Proceed to Installing Ambari Server to install and setup Ambari Server.

