Configuring the Repository
Using packages from the pgedge repository is an easy way to manage Postgres
and supporting components. Before using the pgedge repository, you'll need
to request an access certificate
from pgEdge.
Meeting Platform-Specific Prerequisites
Before configuring local access to the repository (pgedge), you should ensure that your system does not contain any community Postgres packages. Then, install the platform-specific prerequisites for your system with the commands:
sudo apt-get update
sudo apt-get install -y curl
sudo apt-get install -y gnupg2
sudo apt-get install lsb-release
Creating the Repository
After meeting the prerequisites for your system, create the repository with the command:
sudo curl -sSL https://downloads.pgedge.com/repodeb/pgedge-release_latest_all.deb -o /tmp/pgedge-release.deb
sudo dpkg -i /tmp/pgedge-release.deb && rm -f /tmp/pgedge-release.deb || true
Requesting and Registering Your Certificate
Access to the pgedge repository requires a certificate from pgEdge. The
following command, run on the host that will install the packages, registers
the host and creates its private key and a certificate signing request in the
client.csr file:
sudo pgedge-subscription-manager register-system
Email the client.csr file to pgEdge support at
support@pgedge.com, with:
- your organization's name and customer ID.
- the type of certificate you need (a trial or a paid subscription).
- how long the host needs access; a trial provides 30 days of access by default.
pgEdge returns your certificate, client.crt, by email. Each host that
downloads packages needs its own certificate, so repeat these steps once on
every host; you can send several requests in one email if you rename each
client.csr to identify the host. Copy client.crt to the host, then install
the certificate with the following command, giving the path to the file. The
command also enables the repository:
sudo pgedge-subscription-manager install complete_path_to/client.crt
For file locations, the status command, and certificate expiration, see
Obtaining and Installing a Repository Certificate.
After installing the certificate, you're ready to use the repository to
install Postgres and
supporting components.
Updating an Existing Repository
If you installed the pgedge repository before March 1, 2026, replace the
repository sources and register the host for a repository certificate. The
new repository package leaves the repository disabled until you install the
certificate, so the host can't install or update packages from the pgedge
repository until pgEdge returns your certificate and you install it.
Use the following steps to update an existing repository:
-
Remove the existing repository sources with the command:
sudo rm -f /etc/apt/sources.list.d/pgedge.sources -
Install the new repository package, as described in Creating the Repository.
-
Register the host and install its certificate, as described in Requesting and Registering Your Certificate.
-
Refresh the repository contents and upgrade your packages with the commands:
sudo apt-get update sudo apt-get upgrade <package_name>