Add apt.postgresql.org to debian and ubuntu download instructions
authorMagnus Hagander <magnus@hagander.net>
Sat, 15 Dec 2012 17:47:20 +0000 (18:47 +0100)
committerMagnus Hagander <magnus@hagander.net>
Sat, 15 Dec 2012 17:47:20 +0000 (18:47 +0100)
templates/pages/download/linux/debian.html
templates/pages/download/linux/ubuntu.html

index b1d56b7aec2244e85213ae21b10fb463f1ac862e..e50b4bd30039301037d4c9ba22bfd3fa26410811 100644 (file)
@@ -7,7 +7,8 @@
 PostgreSQL is available in all Debian versions by default. However, the
 stable versions of Debians "snapshot" a specific version of PostgreSQL
 that is then supported throughout the lifetime of that Debian version.
-Other versions are available in the Debian <i>backports</i> repositories.
+The PostgreSQL project also maintains an apt repository with all supported
+of PostgreSQL available.
 </p>
 <p>
 Should packages not be available for your distribution, or there are
@@ -40,6 +41,45 @@ version number as required):
  <li>pgadmin3 - pgAdmin III graphical administration utility</li>
 </ul>
 
+<h2>PostgreSQL Apt Repository</h2>
+<p>
+If the version included in your version of Debian is not the one you want,
+you can use the PostgreSQL Apt Repository. This repository will integrate
+with your normal systems and patch management, and provide automatic
+updates for all supported versions of PostgreSQL throughout the support
+<a href="/support/versionning/">lifetime</a> of PostgreSQL.
+</p>
+<p>
+To use the apt repository, follow these steps:
+<ul>
+ <li>Import the repository signing key
+   <code>wget -O - http://apt.postgresql.org/pub/repos/apt/ACCC4CF8.asc | sudo apt-key add -</code>
+ </li>
+ <li>Edit the file <i>/etc/apt/sources.list.d/pgdg.list</i>, and add a line
+   for the repository, substituting the proper "codename" for your release
+   <code>deb http://apt.postgresql.org/pub/repos/apt/ squeeze-pgdg main</code>
+ </li>
+ <li>Configure apt's package pinning to prefer the PGDG packages over the standard ones in <i>/etc/apt/preferences.d/pgdg.pref</i>
+   <code>
+Package: *<br/>
+Pin: release o=apt.postgresql.org<br/>
+Pin-Priority: 500
+   </code>
+ </li>
+ <li>Update the package lists, and install the pgdg-keyring package to automatically get repository key updates
+   <code>
+sudo apt-get update<br/>
+sudo apt-get install pgdg-keyring
+   </code>
+ </li>
+</ul>
+</p>
+<p>
+For more information about the apt repository, including answers to frequent
+questions, please see the apt page on
+<a href="http://wiki.postgresql.org/wiki/Apt">the wiki</a>.
+</p>
+
 <h2>Debian backports</h2>
 <p>
 Newer versions of PostgreSQL for older versions of Debians are available
index 390575d1337b0dd0b8d3d961b59fe092012b41ee..48bf27ef183c2e004722f535d4a7e66b159a8a41 100644 (file)
@@ -7,7 +7,8 @@
 PostgreSQL is available in all Ubuntu versions by default. However,
 Ubuntu "snapshots" a specific version of PostgreSQL that is then
 supported throughout the lifetime of that Ubuntu version. Other
-versions of PostgreSQL are available through a <i>PPA</i> (Personal
+versions of PostgreSQL are available through the PostgreSQL apt
+repository, as well as through a <i>PPA</i> (Personal
 Package Archive - the Ubuntu standard for addon repositories)
 repository.
 </p>
@@ -42,6 +43,50 @@ version number as required):
  <li>pgadmin3 - pgAdmin III graphical administration utility</li>
 </ul>
 
+<h2>PostgreSQL Apt Repository</h2>
+<p>
+If the version included in your version of Debian is not the one you want,
+you can use the PostgreSQL Apt Repository. This repository will integrate
+with your normal systems and patch management, and provide automatic
+updates for all supported versions of PostgreSQL throughout the support
+<a href="/support/versionning/">lifetime</a> of PostgreSQL.
+</p>
+<p>
+Not all Ubuntu releases are currently supported in the apt repository. For
+an up to date list of supported releases, please see the apt page on
+<a href="http://wiki.postgresql.org/wiki/Apt">the wiki</a>.
+</p>
+<p>
+To use the apt repository, follow these steps:
+<ul>
+ <li>Import the repository signing key
+   <code>wget -O - http://apt.postgresql.org/pub/repos/apt/ACCC4CF8.asc | sudo apt-key add -</code>
+ </li>
+ <li>Edit the file <i>/etc/apt/sources.list.d/pgdg.list</i>, and add a line
+   for the repository, substituting the proper "codename" for your release
+   <code>deb http://apt.postgresql.org/pub/repos/apt/ precise-pgdg main</code>
+ </li>
+ <li>Configure apt's package pinning to prefer the PGDG packages over the standard ones in <i>/etc/apt/preferences.d/pgdg.pref</i>
+   <code>
+Package: *<br/>
+Pin: release o=apt.postgresql.org<br/>
+Pin-Priority: 500
+   </code>
+ </li>
+ <li>Update the package lists, and install the pgdg-keyring package to automatically get repository key updates
+   <code>
+sudo apt-get update<br/>
+sudo apt-get install pgdg-keyring
+   </code>
+ </li>
+</ul>
+</p>
+<p>
+For more information about the apt repository, including answers to frequent
+questions, please see the apt page on
+<a href="http://wiki.postgresql.org/wiki/Apt">the wiki</a>.
+</p>
+
 <h2>Ubuntu PPA</h2>
 <p>
 Other versions of PostgreSQL than the standard one for a specific