8000 Upgrade Debian/Ubuntu installation instructions · postgres/pgweb@c661a1d · GitHub
[go: up one dir, main page]

Skip to content

Commit c661a1d

Browse files
committed
Upgrade Debian/Ubuntu installation instructions
* Use /etc/os-release instead of lsb_release * Update list of distribution releases covere * Drop i386 and s390x architectures * Use PG 17 in package name examples
1 parent 02d4fa2 commit c661a1d

File tree

2 files changed

+18
-17
lines changed

2 files changed

+18
-17
lines changed

templates/pages/download/linux/debian.html

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -39,6 +39,7 @@ <h2>PostgreSQL Apt Repository</h2>
3939
<li>bookworm (12.x)</li>
4040
<li>bullseye (11.x)</li>
4141
<li>buster (10.x)</li>
42+
<li>trixie (testing)</li>
4243
<li>sid (unstable)</li>
4344
</ul>
4445
<p>
@@ -47,9 +48,7 @@ <h2>PostgreSQL Apt Repository</h2>
4748
<ul>
4849
<li>amd64</li>
4950
<li>arm64</li>
50-
<li>i386 (buster and older)</li>
5151
<li>ppc64el</li>
52-
<li>s390x</li>
5352
</ul>
5453

5554
<p>
@@ -73,13 +72,14 @@ <h2>PostgreSQL Apt Repository</h2>
7372
sudo curl -o /usr/share/postgresql-common/pgdg/apt.postgresql.org.asc --fail https://www.postgresql.org/media/keys/ACCC4CF8.asc
7473

7574
# Create the repository configuration file:
76-
sudo sh -c 'echo "deb [signed-by=/usr/share/postgresql-common/pgdg/apt.postgresql.org.asc] https://apt.postgresql.org/pub/repos/apt $(lsb_release -cs)-pgdg main" > /etc/apt/sources.list.d/pgdg.list'
75+
. /etc/os-release
76+
sudo sh -c "echo 'deb [signed-by=/usr/share/postgresql-common/pgdg/apt.postgresql.org.asc] https://apt.postgresql.org/pub/repos/apt $VERSION_CODENAME-pgdg main' > /etc/apt/sources.list.d/pgdg.list"
7777

7878
# Update the package lists:
7979
sudo apt update
8080

8181
# Install the latest version of PostgreSQL:
82-
# If you want a specific version, use 'postgresql-16' or similar instead of 'postgresql'
82+
# If you want a specific version, use 'postgresql-17' or similar instead of 'postgresql'
8383
sudo apt -y install postgresql</pre>
8484
<button id="copy-btn2" class="pg-script-copy-btn">Copy Script</button>
8585
</div>
@@ -99,23 +99,23 @@ <h2>Packages</h2>
9999
<table class="table table-striped">
100100
<tbody>
101101
<tr>
102-
<th scope="row">postgresql-client-16</th>
102+
<th scope="row">postgresql-client-17</th>
103103
<td>client libraries and client binaries</td>
104104
</tr>
105105
<tr>
106-
<th scope="row">postgresql-16</th>
106+
<th scope="row">postgresql-17</th>
107107
<td>core database server</td>
108108
</tr>
109109
<tr>
110-
<th scope="row">postgresql-doc-16</th>
110+
<th scope="row">postgresql-doc-17</th>
111111
<td>documentation</td>
112112
</tr>
113113
<tr>
114114
<th scope="row">libpq-dev</th>
115115
<td>libraries and headers for C language frontend development</td>
116116
</tr>
117117
<tr>
118-
<th scope="row">postgresql-server-dev-16</th>
118+
<th scope="row">postgresql-server-dev-17</th>
119119
<td>libraries and headers for C language backend development</td>
120120
</tr>
121121
</tbody>

templates/pages/download/linux/ubuntu.html

Lines changed: 10 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -33,11 +33,12 @@ <h2>PostgreSQL Apt Repository</h2>
3333
<a href="/support/versioning/">lifetime</a> of PostgreSQL.
3434
</p>
3535
<p>
36-
The PostgreSQL Apt Repository supports the current versions of Ubuntu:
36+
The PostgreSQL Apt repository supports the current versions of Ubuntu:
3737
</p>
3838
<ul>
39+
<li>plucky (25.04, non-LTS)</li>
40+
<li>oracular (24.10, non-LTS)</li>
3941
<li>noble (24.04, LTS)</li>
40-
<li>mantic (23.10, non-LTS)</li>
4142
<li>jammy (22.04, LTS)</li>
4243
<li>focal (20.04, LTS)</li>
4344
</ul>
@@ -48,7 +49,6 @@ <h2>PostgreSQL Apt Repository</h2>
4849
<li>amd64</li>
4950
<li>arm64 (LTS releases only)</li>
5051
<li>ppc64el (LTS releases only)</li>
51-
<li>s390x (LTS releases only)</li>
5252
</ul>
5353

5454
<p>
@@ -72,13 +72,14 @@ <h2>PostgreSQL Apt Repository</h2>
7272
sudo curl -o /usr/share/postgresql-common/pgdg/apt.postgresql.org.asc --fail https://www.postgresql.org/media/keys/ACCC4CF8.asc
7373

7474
# Create the repository configuration file:
75-
sudo sh -c 'echo "deb [signed-by=/usr/share/postgresql-common/pgdg/apt.postgresql.org.asc] https://apt.postgresql.org/pub/repos/apt $(lsb_release -cs)-pgdg main" > /etc/apt/sources.list.d/pgdg.list'
75+
. /etc/os-release
76+
sudo sh -c "echo 'deb [signed-by=/usr/share/postgresql-common/pgdg/apt.postgresql.org.asc] https://apt.postgresql.org/pub/repos/apt $VERSION_CODENAME-pgdg main' > /etc/apt/sources.list.d/pgdg.list"
7677

7778
# Update the package lists:
7879
sudo apt update
7980

8081
# Install the latest version of PostgreSQL:
81-
# If you want a specific version, use 'postgresql-16' or similar instead of 'postgresql'
82+
# If you want a specific version, use 'postgresql-17' or similar instead of 'postgresql'
8283
sudo apt -y install postgresql</pre>
8384
<button id="copy-btn2" class="pg-script-copy-btn">Copy Script</button>
8485
</div>
@@ -98,23 +99,23 @@ <h2>Packages</h2>
9899
<table class="table table-striped">
99100
<tbody>
100101
<tr>
101-
<th scope="row">postgresql-client-16</th>
102+
<th scope="row">postgresql-client-17</th>
102103
<td>client libraries and client binaries</td>
103104
</tr>
104105
<tr>
105-
<th scope="row">postgresql-16</th>
106+
<th scope="row">postgresql-17</th>
106107
<td>core database server</td>
107108
</tr>
108109
<tr>
109-
<th scope="row">postgresql-doc-16</th>
110+
<th scope="row">postgresql-doc-17</th>
110111
<td>documentation</td>
111112
</tr>
112113
<tr>
113114
<th scope="row">libpq-dev</th>
114115
<td>libraries and headers for C language frontend development</td>
115116
</tr>
116117
<tr>
117-
<th scope="row">postgresql-server-dev-16</th>
118+
<th scope="row">postgresql-server-dev-17</th>
118119
<td>libraries and headers for C language backend development</td>
119120
</tr>
120121
</tbody>

0 commit comments

Comments
 (0)
0