Adding EDB repositories using the command line

Suggest edits

Using the command line allows you more flexibility in adding EDB repositories to your system. The website currently only supports Enterprise subscriptions, but the CLI allows you to add any EDB repository, including community360, standard, enterprise, and postgres_distributed.

See the Repositories by name page for more information and what subscriptions are able to access them.

  1. Get your token. If you don't have a token, get it now and return to this page when you have your token.

  2. Save your token in the environment variable $EDB_SUBSCRIPTION_TOKEN:

    export EDB_SUBSCRIPTION_TOKEN=your_token_here
  3. Save your required repository name in the environment variable $EDB_REPO:

    export EDB_REPO=your_repository_name_here
  4. Depending on your operating system, run the following command:

    RHEL/AlmaLinux/RockyLinux/Oracle Linux and SUSE:

    curl -1sSLf "https://downloads.enterprisedb.com/$EDB_SUBSCRIPTION_TOKEN/$EDB_REPO/setup.rpm.sh" | sudo -E bash

    Ubuntu/Debian:

    curl -1sSLf "https://downloads.enterprisedb.com/$EDB_SUBSCRIPTION_TOKEN/$EDB_REPO/setup.deb.sh" | sudo -E bash
  5. You can now install packages from that EDB repository. Move on to the installing named packages to install the packages you need.

  6. If you have any issues, check the troubleshooting section.


Could this page be better? Report a problem or suggest an addition!