Installing on Linux using a local repository v17

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 dnf to install the epel-release, yum-utils, and createrepo packages.

    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 edbas17 -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:

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

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

dnf -y install edb-as17-server

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