@@ -13,39 +13,34 @@ non-obsolete releases.
13
13
#### Build and install
14
14
15
15
<highlight type =" warning " >
16
- If you have another PostgreSQL installation not via ` apt ` ,
16
+ If you have another PostgreSQL installation not via ` apt ` ,
17
17
this will likely cause problems.
18
18
19
19
If you wish to maintain your current version of PostgreSQL outside
20
20
of ` apt ` , we recommend installing from source. Otherwise, please be
21
21
sure to remove non-` apt ` installations before using this method.
22
22
</highlight >
23
23
24
- ** If you don't already have PostgreSQL installed** , add PostgreSQL's third
25
- party repository to get the latest PostgreSQL packages (if you are using Ubuntu older than 19.04):
24
+ Add the PostgreSQL third party repository to get the latest PostgreSQL packages:
26
25
``` bash
27
- # `lsb_release -c -s` should return the correct codename of your OS
28
- echo " deb http://apt.postgresql.org/pub/repos/apt/ $( lsb_release -c -s) -pgdg main" | sudo tee /etc/apt/sources.list.d/pgdg.list
29
- wget --quiet -O - https://www.postgresql.org/media/keys/ACCC4CF8.asc | sudo apt-key add -
30
- sudo apt-get update
26
+ sudo apt install postgresql-common
27
+ sudo sh /usr/share/postgresql-common/pgdg/apt.postgresql.org.sh
31
28
```
32
29
33
- Add TimescaleDB's third party repository and install TimescaleDB,
34
- which will download any dependencies it needs from the PostgreSQL repo:
35
- <highlight type =" tip " >
36
- Users coming from previous versions that have installed the PPA,
37
- need to add the new Ubuntu package repository for the release of TimescaleDB 2.4.
38
- </highlight >
39
-
30
+ Add the TimescaleDB third party repository and install TimescaleDB. This command
31
+ downloads any required dependencies from the PostgreSQL repository:
40
32
``` bash
41
- # Add our repository
42
- sudo sh -c " echo 'deb https://packagecloud.io/timescale/timescaledb/ubuntu/ ` lsb_release -c -s` main' > /etc/apt/sources.list.d/timescaledb.list"
43
- wget --quiet -O - https://packagecloud.io/timescale/timescaledb/gpgkey | sudo apt-key add -
33
+ sudo sh -c " echo 'deb [signed-by=/usr/share/keyrings/timescale.keyring] https://packagecloud.io/timescale/timescaledb/ubuntu/ $( lsb_release -c -s) main' > /etc/apt/sources.list.d/timescaledb.list"
34
+ wget --quiet -O - https://packagecloud.io/timescale/timescaledb/gpgkey | sudo gpg --dearmor -o /usr/share/keyrings/timescale.keyring
44
35
sudo apt-get update
45
36
46
37
# Now install appropriate package for PG version
47
38
sudo apt install timescaledb-2-postgresql-13
48
39
```
40
+ <highlight type =" tip " >
41
+ Users coming from previous versions that have installed the PPA need to add the
42
+ new Ubuntu package repository for the release of TimescaleDB 2.4.
43
+ </highlight >
49
44
50
45
#### Upgrading from TimescaleDB 1.x
51
46
If you are upgrading from TimescaleDB 1.x, the ` apt ` package will first
0 commit comments