Installing on Linux using a local repository v16

If the server on which you want to install EDB Postgres Advanced Server or the supporting components can't directly access the EDB repository, you can create a local repository to act as a host for the EDB Postgres Advanced Server native packages. For your network, modify this process from these high-level steps.

To create and use a local repository, you must:

  • Use yum or dnf to install the epel-release, yum-utils, and createrepo packages.

    On RHEL or CentOS 7.x:

    yum install epel-release
    yum install yum-utils
    yum install createrepo

    On RHEL or Rocky Linux or AlmaLinux 8.x:

    dnf install epel-release
    dnf install yum-utils
    dnf install createrepo
  • Create a directory in which to store the repository:

    mkdir /srv/repos
  • Copy the RPM installation packages to your local repository. You can download the individual packages or use a tarball to populate the repository. The packages are available from the EDB repository.

  • Sync the RPM packages, and create the repository.

    reposync -r edbas15 -p /srv/repos
    createrepo /srv/repos
  • Install your preferred webserver on the host that acts as your local repository, and ensure that the repository directory is accessible to the other servers on your network.

  • On each isolated database server, configure yum or dnf to pull updates from the mirrored repository on your local network. For example, you might create a repository configuration file called /etc/yum.repos.d/edb-repo with connection information that specifies:

    [edbas15]
    name=EnterprisEDB Postgres Advanced Server 15
    baseurl=https://yum.your_domain.com/edbas15
    enabled=1
    gpgcheck=0

After specifying the location and connection information for your local repository, you can use yum or dnf commands to install EDB Postgres Advanced Server and its supporting components on the isolated servers. For example:

  • On RHEL or CentOS 7:

    yum -y install edb-as15-server
  • On RHEL or Rocky Linux or AlmaLinux 8:

    dnf -y install edb-as15-server

For more information about creating a local yum repository, see the Centos wiki.