:: Re: [DNG] Fwd: Installing postgresq…
Etusivu
Poista viesti
Vastaa
Lähettäjä: wirelessduck
Päiväys:  
Vastaanottaja: dng
Aihe: Re: [DNG] Fwd: Installing postgresql13 on beowulf


> On 18 Jul 2021, at 21:08, o1bigtenor <o1bigtenor@???> wrote:
>
> On Sun, Jul 18, 2021 at 5:58 AM wirelessduck--- via Dng
> <dng@???> wrote:
>>
>>
> snip
>>>>
>>>> I use the buster-pgdg repositories for all of my postgresql installations, following the instructions on apt.postgresql.org but substituting the lsb_release part for “buster”
>>>>
>>>
>>> Thank you very much.
>>> I did not understand that I was to use 'Buster' in place of 'lsb_release' .
>>>
>>> Using 'lsb_release' is what caused the foobar.
>>>
>>> Regards
>>
>> Yes that snippet is designed to make it easy to copy and paste so you they can provide one script to setup for all supported distros. As Devuan isn’t directly supported by pgdg repository we just have to make a small change to use the equivalent Debian release name.
>>
>
> Dunno if I'm understanding correctly but when I use the actual 'name'
> of the distribution then I would have to change such when that
> distribution changes - - - yes?
>
> The generic statement would not need upgrading as I understand it.
>
> Deeply appreciating the sharing in this group!!


Check the man page for lsb_release.

https://manpages.debian.org/buster/lsb-release/lsb_release.1.en.html

You will see that `lsb_release -cs` as used in the postgresql wiki page snippet just prints the running system distribution codename. In Debian, Ubuntu, and others directly supported by pgdg that will “autofill” in the codename into the shell script. As “beowulf” is not supported directly by pgdg, we just have to substitute in the equivalent Debian release codename instead of using the output of `lsb_release -cs`.

--
Tom