Configuring the Repository
Using packages from the pgedge repository is an easy way to manage Postgres and supporting components.
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://apt.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
After creating the repository, you're ready to use the repository to install Postgres and supporting components.