Re: [PATCH] replaced deprecated apt-key usage - Mailing list pgsql-www

From Christoph Berg
Subject Re: [PATCH] replaced deprecated apt-key usage
Date
Msg-id ZN06jf2voC26BKFC@msg.df7cb.de
Whole thread Raw
In response to Re: [PATCH] replaced deprecated apt-key usage  ("Jonathan S. Katz" <jkatz@postgresql.org>)
List pgsql-www
Re: Jonathan S. Katz
> 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?

Actually, there's an even more modern way by telling apt that a
certain repository is signed with a specific key. I've recently taught
apt.postgresql.org.sh to use that and now also updated
https://wiki.postgresql.org/wiki/Apt to use it.

And the yet better way is to not use anything external and just get
it from the distribution:

sudo apt install -y postgresql-common
sudo sh /usr/share/postgresql-common/pgdg/apt.postgresql.org.sh

Christoph



pgsql-www by date:

Previous
From: Akshat Jaimini
Date:
Subject: Re: [PATCH] Inbuilt URL validation for dynamic content generated by users.
Next
From: Joe Conway
Date:
Subject: Re: Wiki editor request