Skip to content

Rate this page
Thanks for your feedback
Thank you! The feedback has been submitted.

Get free database assistance or contact our experts for personalized support.

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

  1. 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_tde package.
  2. 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

  1. You need the following dependencies to install percona-release:

    • wget
    • gnupg2
    • curl
    • lsb-release

    Install the dependencies:

    sudo apt-get install -y wget gnupg2 curl lsb-release
    
  2. Fetch the percona-release package

    sudo wget https://repo.percona.com/apt/percona-release_latest.generic_all.deb
    
  3. Install percona-release

    sudo dpkg -i percona-release_latest.generic_all.deb
    
  4. Enable the Percona Distribution for PostgreSQL repository

    sudo percona-release enable-only ppg-18.1
    
  5. 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

Next steps

Configure pg_tde