Adding EDB repositories using the command line

Suggest edits

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

See Repositories by name for a list of repositories and the subscriptions that can access them.

  1. From your EDB account, get 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 appropriate curl 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 installing named packages to install the packages you need.

Note

If you have any issues, see Troubleshooting.


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