APT repository instructions - Mailing list pgsql-pkg-debian

From Tom Cassidy
Subject APT repository instructions
Date
Msg-id 12966a8d8b68b59d3faf504754c08a67fda6d438.camel@mossridge.com.au
Whole thread Raw
Responses Re: APT repository instructions
List pgsql-pkg-debian
Hi,

Thanks for all the work you guys put in to maintain the deb packages
for postgres!

Is there somewhere where updates/changes to the APT repository
documentation can be submitted?

I can see various differing instructions at:
https://wiki.postgresql.org/wiki/Apt
https://wiki.postgresql.org/wiki/Apt/FAQ
https://apt.postgresql.org/pub/repos/apt/README
https://salsa.debian.org/postgresql/postgresql-common/raw/master/pgdg/apt.postgresql.org.sh

From a quick glance, it looks like the instructions are out of date in
some places and could do with some updating. See
https://blog.cloudflare.com/dont-use-apt-key/ for reasons why.

In short, the gpg key symlink should be moved from
/etc/apt/trusted.gpg.d/ to /usr/share/keyrings/ and the
sources.list.d/pgdg.list should be updated to read:

deb [signed-by=/usr/share/keyrings/apt.postgresql.org.gpg]
https://apt.postgresql.org/pub/repos/apt/ $(lsb_release -cs)-pgdg main


Thanks,
Tom

pgsql-pkg-debian by date:

Previous
From: apt.postgresql.org Repository Update
Date:
Subject: repmgr updated to version 5.3.2-1.pgdg+1
Next
From: Christoph Berg
Date:
Subject: Re: APT repository instructions