Install pg_tde on Debian or Ubuntu¶
This page explains how to install pg_tde for Percona Distribution for PostgreSQL .
Tip
Check the list of supported platforms before continuing.
Preconditions¶
- Remove any upstream PostgreSQL packages (postgresql-*) that may already be installed on Debian or other apt-based systems. These packages conflict with Percona Server for PostgreSQL and with the standalone
pg_tdepackage. - Ensure you enable the Percona APT repository using the repository management tool
percona-release. This ensures the correct Percona Server for PostgreSQL and pg_tde packages are available for installation.
Install percona-release¶
-
You need the following dependencies to install
percona-release:wgetgnupg2curllsb-release
Install the dependencies:
sudo apt-get install -y wget gnupg2 curl lsb-release -
Fetch the
percona-releasepackagesudo wget https://repo.percona.com/apt/percona-release_latest.generic_all.deb -
Install
percona-releasesudo dpkg -i percona-release_latest.generic_all.deb -
Enable the Percona Distribution for PostgreSQL repository
sudo percona-release enable-only ppg-18.1 -
Update the local cache
sudo apt-get update
Install pg_tde¶
After all preconditions are met, install the pg_tde package:
sudo apt-get install -y percona-pg-tde-(pg-version)
Example for PostgreSQL 17¶
sudo apt-get install -y percona-pg-tde-17