@@ -354,31 +354,36 @@ su - postgres
354354 <title>Getting the Source</title>
355355
356356 <para>
357- The <productname>PostgreSQL</productname> &version; sources can be obtained from the
358- download section of our
359- website: <ulink url="https://www .postgresql.org/download/ "></ulink>. You
360- should get a file named <filename>postgresql-&version;.tar.gz</filename>
361- or <filename>postgresql-&version;.tar.bz2</filename>. After
362- you have obtained the file, unpack it:
357+ The version control repository for <productname>PostgreSQL</productname>
358+ can be obtained from
359+ <ulink url="https://git .postgresql.org/gitweb/?p=postgresql.git;a=summary "></ulink>;
360+ this is the recommended way to obtain the
361+ <productname>PostgreSQL</productname> source code.
362+ You can obtain a clone of the repository by running
363363<screen>
364- <userinput>gunzip postgresql-&version;.tar.gz</userinput>
365- <userinput>tar xf postgresql-&version;.tar</userinput>
364+ <userinput>git clone https://git.postgresql.org/git/postgresql.git</userinput>
366365</screen>
367- (Use <command>bunzip2</command> instead of <command>gunzip</command> if
368- you have the <filename>.bz2</filename> file. Also, note that most
369- modern versions of <command>tar</command> can unpack compressed archives
370- directly, so you don't really need the
371- separate <command>gunzip</command> or <command>bunzip2</command> step.)
372- This will create a directory
373- <filename>postgresql-&version;</filename> under the current directory
374- with the <productname>PostgreSQL</productname> sources.
375- Change into that directory for the rest
376- of the installation procedure.
366+ This will create a directory <filename>postgresql</filename> under the current
367+ directory with the <productname>PostgreSQL</productname> sources.
368+ Change into that directory for the rest of the installation procedure.
369+ See <xref linkend="git"/> for further information.
377370 </para>
378371
379372 <para>
380- You can also get the source directly from the version control repository, see
381- <xref linkend="sourcerepo"/>.
373+ Alternatively, source code for the released versions can be obtained
374+ from the download section of our website:
375+ <ulink url="https://www.postgresql.org/ftp/source/"></ulink>.
376+ Download then
377+ <filename>postgresql-<replaceable>version</replaceable>.tar.gz</filename>
378+ or <filename>postgresql-<replaceable>version</replaceable>.tar.bz2</filename>
379+ you're interested in, then unpack it:
380+ <screen>
381+ <userinput>tar xf postgresql-<replaceable>version</replaceable>.tar.bz2</userinput>
382+ </screen>
383+ This will create a directory
384+ <filename>postgresql-<replaceable>version</replaceable></filename> under
385+ the current directory with the <productname>PostgreSQL</productname> sources.
386+ Change into that directory for the rest of the installation procedure.
382387 </para>
383388 </sect1>
384389
0 commit comments