Re: [PATCH] replaced deprecated apt-key usage

From: "Jonathan S(dot) Katz" <jkatz(at)postgresql(dot)org>
To: radu(at)matasaru(dot)net, pgsql-www(at)lists(dot)postgresql(dot)org
Cc: Christoph Berg <myon(at)debian(dot)org>
Subject: Re: [PATCH] replaced deprecated apt-key usage
Date: 2023-08-15 13:53:20
Message-ID: 8a8cd9ba-e075-1a3d-ce52-999f902bdfeb@postgresql.org
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-www

On 8/14/23 6:27 AM, radu(at)matasaru(dot)net wrote:
> apt-key was deprecated some Debian versions ago. This change follows the
> first suggestion for the DEPRECATION section of apt-key manpages.
> ---
>  templates/pages/download/linux/debian.html | 3 ++-
>  1 file changed, 2 insertions(+), 1 deletion(-)
>
> diff --git a/templates/pages/download/linux/debian.html
> b/templates/pages/download/linux/debian.html
> index 2cfbd240..e2c36d25 100644
> --- a/templates/pages/download/linux/debian.html
> +++ b/templates/pages/download/linux/debian.html
> @@ -49,7 +49,8 @@ <h2>PostgreSQL Apt Repository</h2>
>  sudo sh -c 'echo "deb http://apt.postgresql.org/pub/repos/apt
> $(lsb_release -cs)-pgdg main" > /etc/apt/sources.list.d/pgdg.list'
>
>  # Import the repository signing key:
> -wget --quiet -O - https://www.postgresql.org/media/keys/ACCC4CF8.asc |
> sudo apt-key add -
> +wget --quiet -O - https://www.postgresql.org/media/keys/ACCC4CF8.asc |
> sudo tee /etc/apt/trusted.gpg.d/apt.postgresql.org.asc
> +

Good catch! I'd suggest we make it match what's on the
apt.postgresql.org[1]:

sudo apt install curl ca-certificates gnupg
curl https://www.postgresql.org/media/keys/ACCC4CF8.asc | gpg --dearmor
| sudo tee /etc/apt/trusted.gpg.d/apt.postgresql.org.gpg >/dev/null

etc. Thoughts?

Jonathan

In response to

Responses

Browse pgsql-www by date

  From Date Subject
Next Message Aizhamal Nurmamat kyzy 2023-08-15 21:10:53 [planet] Help adding our blogs (+add Tembo team)
Previous Message Akshat Jaimini 2023-08-14 15:53:42 Re: [PATCH] Inbuilt URL validation for dynamic content generated by users.