From c661a1d41ba6a2a1ce66028eb26d83a17d51da5a Mon Sep 17 00:00:00 2001 From: Christoph Berg Date: Wed, 9 Apr 2025 14:06:03 +0200 Subject: [PATCH] Upgrade Debian/Ubuntu installation instructions * Use /etc/os-release instead of lsb_release * Update list of distribution releases covere * Drop i386 and s390x architectures * Use PG 17 in package name examples --- templates/pages/download/linux/debian.html | 16 ++++++++-------- templates/pages/download/linux/ubuntu.html | 19 ++++++++++--------- 2 files changed, 18 insertions(+), 17 deletions(-) diff --git a/templates/pages/download/linux/debian.html b/templates/pages/download/linux/debian.html index 8f628deb..7216112e 100644 --- a/templates/pages/download/linux/debian.html +++ b/templates/pages/download/linux/debian.html @@ -39,6 +39,7 @@ The PostgreSQL Apt repository supports the current versions of Debian:
  • bookworm (12.x)
  • bullseye (11.x)
  • buster (10.x)
  • +
  • trixie (testing)
  • sid (unstable)
  • @@ -47,9 +48,7 @@ on the following architectures:

    @@ -73,13 +72,14 @@ sudo install -d /usr/share/postgresql-common/pgdg sudo curl -o /usr/share/postgresql-common/pgdg/apt.postgresql.org.asc --fail https://www.postgresql.org/media/keys/ACCC4CF8.asc # Create the repository configuration file: -sudo sh -c 'echo "deb [signed-by=/usr/share/postgresql-common/pgdg/apt.postgresql.org.asc] https://apt.postgresql.org/pub/repos/apt $(lsb_release -cs)-pgdg main" > /etc/apt/sources.list.d/pgdg.list' +. /etc/os-release +sudo sh -c "echo 'deb [signed-by=/usr/share/postgresql-common/pgdg/apt.postgresql.org.asc] https://apt.postgresql.org/pub/repos/apt $VERSION_CODENAME-pgdg main' > /etc/apt/sources.list.d/pgdg.list" # Update the package lists: sudo apt update # Install the latest version of PostgreSQL: -# If you want a specific version, use 'postgresql-16' or similar instead of 'postgresql' +# If you want a specific version, use 'postgresql-17' or similar instead of 'postgresql' sudo apt -y install postgresql @@ -99,15 +99,15 @@ version number as required): - + - + - + @@ -115,7 +115,7 @@ version number as required): - + diff --git a/templates/pages/download/linux/ubuntu.html b/templates/pages/download/linux/ubuntu.html index 19c0a318..c02d1c27 100644 --- a/templates/pages/download/linux/ubuntu.html +++ b/templates/pages/download/linux/ubuntu.html @@ -33,11 +33,12 @@ updates for all supported versions of PostgreSQL throughout the support lifetime of PostgreSQL.

    -The PostgreSQL Apt Repository supports the current versions of Ubuntu: +The PostgreSQL Apt repository supports the current versions of Ubuntu:

    @@ -48,7 +49,6 @@ on the following architectures:
  • amd64
  • arm64 (LTS releases only)
  • ppc64el (LTS releases only)
  • -
  • s390x (LTS releases only)
  • @@ -72,13 +72,14 @@ sudo install -d /usr/share/postgresql-common/pgdg sudo curl -o /usr/share/postgresql-common/pgdg/apt.postgresql.org.asc --fail https://www.postgresql.org/media/keys/ACCC4CF8.asc # Create the repository configuration file: -sudo sh -c 'echo "deb [signed-by=/usr/share/postgresql-common/pgdg/apt.postgresql.org.asc] https://apt.postgresql.org/pub/repos/apt $(lsb_release -cs)-pgdg main" > /etc/apt/sources.list.d/pgdg.list' +. /etc/os-release +sudo sh -c "echo 'deb [signed-by=/usr/share/postgresql-common/pgdg/apt.postgresql.org.asc] https://apt.postgresql.org/pub/repos/apt $VERSION_CODENAME-pgdg main' > /etc/apt/sources.list.d/pgdg.list" # Update the package lists: sudo apt update # Install the latest version of PostgreSQL: -# If you want a specific version, use 'postgresql-16' or similar instead of 'postgresql' +# If you want a specific version, use 'postgresql-17' or similar instead of 'postgresql' sudo apt -y install postgresql @@ -98,15 +99,15 @@ version number as required):

    postgresql-client-16postgresql-client-17 client libraries and client binaries
    postgresql-16postgresql-17 core database server
    postgresql-doc-16postgresql-doc-17 documentation
    libraries and headers for C language frontend development
    postgresql-server-dev-16postgresql-server-dev-17 libraries and headers for C language backend development
    - + - + - + @@ -114,7 +115,7 @@ version number as required): - + -- 2.39.5
    postgresql-client-16postgresql-client-17 client libraries and client binaries
    postgresql-16postgresql-17 core database server
    postgresql-doc-16postgresql-doc-17 documentation
    libraries and headers for C language frontend development
    postgresql-server-dev-16postgresql-server-dev-17 libraries and headers for C language backend development