Preparing Ambari Repository Configuration File to use Local Repository

You must prepare the Ambari Repository Configuration File to use the Local Repository.

  1. Download the ambari.repo file from the private repository:<OS>/ambaridc.repo/
  2. Edit the ambari.repo file and replace the Ambari Base URL baseurl obtained when setting up your local repository.
#json.url =
name=ambari Version - ambari-
  1. Base URL for a Local Repository.
    • Built with Repository Tarball (No Internet Access) http://<web.server>/Ambari-7.1.x.x/<OS>
    • Built with Repository File (Temporary Internet Access) http://<web.server>/ambari/<OS>/Updates-Ambari-7.1.x.x where <web.server> = FQDN of the web server host, and <OS> is amazonlinux2, centos7, sles12, ubuntu16, ubuntu18, or debian9.
  2. Place the ambari.repo file on the host you plan to use for the Ambari server:
    • For RHEL/CentOS/Oracle/Amazon Linux: /etc/yum.repos.d/ambari.repo
    • For SLES: /etc/zypp/repos.d/ambari.repo
    • For Debain/Ubuntu: /etc/apt/sources.list.d/ambari.list
  3. Edit the /etc/yum/pluginconf.d/priorities.conf file to add the following values: [main] enabled=1 gpgcheck=0