From: Alvaro Herrera Date: Tue, 13 Jul 2021 13:06:54 -0400 Subject: [PATCH v3] Improve installation instructions a bit Reported-by: Daniel Westermann Discussion: https://postgr.es/m/GV0P278MB04835AAEACF894617574EB6BD25A9@GV0P278MB0483.CHEP278.PROD.OUTLOOK.COM --- doc/src/sgml/installation.sgml | 41 +++++++++++++++++++--------------- 1 file changed, 23 insertions(+), 18 deletions(-) diff --git a/doc/src/sgml/installation.sgml b/doc/src/sgml/installation.sgml index 05b77ec8e6..5a900da0a3 100644 --- a/doc/src/sgml/installation.sgml +++ b/doc/src/sgml/installation.sgml @@ -354,32 +354,37 @@ su - postgres Getting the Source - The PostgreSQL &version; sources can be obtained from the - download section of our - website: . You - should get a file named postgresql-&version;.tar.gz - or postgresql-&version;.tar.bz2. After - you have obtained the file, unpack it: + The version control repository for PostgreSQL + can be obtained from + ; + this is the recommended way to obtain the + PostgreSQL source code. + You can obtain a clone of the repository by running -gunzip postgresql-&version;.tar.gz -tar xf postgresql-&version;.tar +git clone https://git.postgresql.org/git/postgresql.git + + This will create a directory postgresql under the current + directory with the PostgreSQL sources. + Change into that directory for the rest of the installation procedure. + See for further information. + + + + Alternatively, + the released versions can be obtained from the download section of our + website: . + You should get a file named postgresql-&version;.tar.gz + or postgresql-&version;.tar.bz2. + After you have obtained the file, unpack it: + +tar xfa postgresql-&version;.tar.gz - (Use bunzip2 instead of gunzip if - you have the .bz2 file. Also, note that most - modern versions of tar can unpack compressed archives - directly, so you don't really need the - separate gunzip or bunzip2 step.) This will create a directory postgresql-&version; under the current directory with the PostgreSQL sources. Change into that directory for the rest of the installation procedure. - - - You can also get the source directly from the version control repository, see - . - -- 2.30.2 --cukfwqd3x2sookv2--