Skip to content

Commit 1efc434

Browse files
authored
Merge branch 'latest' into 4392-failing-link-check-tuesday-september-2nd
2 parents c95e3d8 + d20ea7f commit 1efc434

15 files changed

+397
-21
lines changed

_partials/_install-self-hosted-archlinux-based.md

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,6 @@
1+
2+
ArchLinux packages are built by the community.
3+
14
<Procedure>
25

36

Lines changed: 51 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,51 @@
1+
2+
1. **Update your local repository list**
3+
4+
```bash
5+
sudo apt update
6+
```
7+
8+
1. **Install TimescaleDB**
9+
10+
```bash
11+
sudo apt install timescaledb-2-postgresql-17 postgresql-client-17
12+
```
13+
14+
To install a specific $TIMESCALE_DB [release][releases-page], set the version. For example:
15+
16+
`sudo apt-get install timescaledb-2-postgresql-14='2.6.0*' timescaledb-2-loader-postgresql-14='2.6.0*'`
17+
18+
Older versions of $TIMESCALE_DB may not support all the OS versions listed on this page.
19+
20+
1. **Tune your $PG instance for TimescaleDB**
21+
22+
```bash
23+
sudo timescaledb-tune
24+
```
25+
26+
By default, this script is included with the `timescaledb-tools` package when you install TimescaleDB. Use the prompts to tune your development or production environment. For more information on manual configuration, see [Configuration][config]. If you have an issue, run `sudo apt install timescaledb-tools`.
27+
28+
1. **Restart $PG**
29+
30+
```bash
31+
sudo systemctl restart postgresql
32+
```
33+
34+
1. **Log in to $PG as `postgres`**
35+
36+
```bash
37+
sudo -u postgres psql
38+
```
39+
You are in the psql shell.
40+
41+
1. **Set the password for `postgres`**
42+
43+
```bash
44+
\password postgres
45+
```
46+
47+
When you have set the password, type `\q` to exit psql.
48+
49+
50+
[config]: /self-hosted/:currentVersion:/configuration/
51+
[releases-page]: https://packagecloud.io/timescale/timescaledb
Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,15 @@
1+
2+
1. **Install the latest $PG packages**
3+
4+
```bash
5+
sudo apt install gnupg postgresql-common apt-transport-https lsb-release wget
6+
```
7+
8+
1. **Run the $PG package setup script**
9+
10+
```bash
11+
sudo /usr/share/postgresql-common/pgdg/apt.postgresql.org.sh
12+
```
13+
14+
[config]: /self-hosted/:currentVersion:/configuration/
15+
[releases-page]: https://packagecloud.io/timescale/timescaledb
Lines changed: 26 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,26 @@
1+
import SelfHostedDebianStart from "versionContent/_partials/_install-self-hosted-debian-based-start.mdx";
2+
import SelfHostedDebianEnd from "versionContent/_partials/_install-self-hosted-debian-based-end.mdx";
3+
4+
<Procedure>
5+
6+
<SelfHostedDebianStart />
7+
8+
1. **Add the $TIMESCALE_DB package**
9+
10+
```bash
11+
echo "deb https://packagecloud.io/timescale/timescaledb/debian/ $(lsb_release -c -s) main" | sudo tee /etc/apt/sources.list.d/timescaledb.list
12+
```
13+
14+
1. **Install the $TIMESCALE_DB GPG key**
15+
16+
```bash
17+
wget --quiet -O - https://packagecloud.io/timescale/timescaledb/gpgkey | sudo gpg --dearmor -o /etc/apt/trusted.gpg.d/timescaledb.gpg
18+
```
19+
20+
<SelfHostedDebianEnd />
21+
22+
</Procedure>
23+
24+
25+
[config]: /self-hosted/:currentVersion:/configuration/
26+
[releases-page]: https://packagecloud.io/timescale/timescaledb
Lines changed: 32 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,32 @@
1+
import SelfHostedRedhatXPlatform from "versionContent/_partials/_install-self-hosted-redhat-x-platform.mdx";
2+
3+
<Procedure>
4+
5+
1. **Install the latest $PG packages**
6+
7+
```bash
8+
sudo yum install https://download.postgresql.org/pub/repos/yum/reporpms/F-$(rpm -E %{fedora})-x86_64/pgdg-fedora-repo-latest.noarch.rpm
9+
```
10+
11+
1. **Add the $TIMESCALE_DB repository**
12+
13+
```bash
14+
sudo tee /etc/yum.repos.d/timescale_timescaledb.repo <<EOL
15+
[timescale_timescaledb]
16+
name=timescale_timescaledb
17+
baseurl=https://packagecloud.io/timescale/timescaledb/el/9/\$basearch
18+
repo_gpgcheck=1
19+
gpgcheck=0
20+
enabled=1
21+
gpgkey=https://packagecloud.io/timescale/timescaledb/gpgkey
22+
sslverify=1
23+
sslcacert=/etc/pki/tls/certs/ca-bundle.crt
24+
metadata_expire=300
25+
EOL
26+
```
27+
28+
<SelfHostedRedhatXPlatform />
29+
30+
</Procedure>
31+
32+
[config]: /self-hosted/:currentVersion:/configuration/

_partials/_install-self-hosted-redhat-based.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22

33
1. **Install the latest $PG packages**
44

5-
<Terminal>
5+
<Terminal persistKey="os-redhat">
66

77
<tab label='Red Hat'>
88

@@ -23,7 +23,7 @@
2323

2424
1. **Add the $TIMESCALE_DB repository**
2525

26-
<Terminal>
26+
<Terminal persistKey="os-redhat">
2727

2828
<tab label='Red Hat'>
2929

Lines changed: 48 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,48 @@
1+
2+
1. **Install TimescaleDB**
3+
4+
To avoid errors, **do not** install $TDB_APACHE and $TDB_COMMUNITY at the same time.
5+
6+
```bash
7+
sudo dnf install -y postgresql16-server postgresql16-contrib timescaledb-2-postgresql-16
8+
```
9+
10+
1. **Initialize the $PG instance**
11+
12+
```bash
13+
sudo /usr/pgsql-16/bin/postgresql-16-setup initdb
14+
```
15+
16+
1. **Tune your $PG instance for TimescaleDB**
17+
18+
```bash
19+
sudo timescaledb-tune --pg-config=/usr/pgsql-16/bin/pg_config
20+
```
21+
22+
This script is included with the `timescaledb-tools` package when you install TimescaleDB.
23+
For more information, see [configuration][config].
24+
25+
1. **Enable and start $PG**
26+
27+
```bash
28+
sudo systemctl enable postgresql-16
29+
sudo systemctl start postgresql-16
30+
```
31+
32+
1. **Log in to $PG as `postgres`**
33+
34+
```bash
35+
sudo -u postgres psql
36+
```
37+
You are now in the psql shell.
38+
39+
1. **Set the password for `postgres`**
40+
41+
```bash
42+
\password postgres
43+
```
44+
45+
When you have set the password, type `\q` to exit psql.
46+
47+
48+
[config]: /self-hosted/:currentVersion:/configuration/
Lines changed: 65 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,65 @@
1+
2+
1. **Update your local repository list**
3+
4+
```bash
5+
sudo yum update
6+
```
7+
8+
1. **Install TimescaleDB**
9+
10+
To avoid errors, **do not** install $TDB_APACHE and $TDB_COMMUNITY at the same time.
11+
12+
```bash
13+
sudo yum install timescaledb-2-postgresql-17 postgresql17
14+
```
15+
16+
<!-- hack until we have bandwidth to rewrite this linting rule -->
17+
18+
<!-- markdownlint-disable TS007 -->
19+
<Highlight type="note">
20+
On Red Hat Enterprise Linux 8 and later, disable the built-in $PG module:
21+
22+
`sudo dnf -qy module disable postgresql`
23+
</Highlight>
24+
25+
<!-- markdownlint-enable TS007 -->
26+
27+
1. **Initialize the $PG instance**
28+
29+
```bash
30+
sudo /usr/pgsql-17/bin/postgresql-17-setup initdb
31+
```
32+
33+
1. **Tune your $PG instance for TimescaleDB**
34+
35+
```bash
36+
sudo timescaledb-tune --pg-config=/usr/pgsql-17/bin/pg_config
37+
```
38+
39+
This script is included with the `timescaledb-tools` package when you install TimescaleDB.
40+
For more information, see [configuration][config].
41+
42+
1. **Enable and start $PG**
43+
44+
```bash
45+
sudo systemctl enable postgresql-17
46+
sudo systemctl start postgresql-17
47+
```
48+
49+
1. **Log in to $PG as `postgres`**
50+
51+
```bash
52+
sudo -u postgres psql
53+
```
54+
You are now in the psql shell.
55+
56+
1. **Set the password for `postgres`**
57+
58+
```bash
59+
\password postgres
60+
```
61+
62+
When you have set the password, type `\q` to exit psql.
63+
64+
65+
[config]: /self-hosted/:currentVersion:/configuration/
Lines changed: 34 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,34 @@
1+
2+
import SelfHostedRedhatXPlatform from "versionContent/_partials/_install-self-hosted-redhat-x-platform.mdx";
3+
4+
<Procedure>
5+
6+
1. **Install the latest $PG packages**
7+
8+
```bash
9+
sudo yum install https://download.postgresql.org/pub/repos/yum/reporpms/EL-$(rpm -E %{rhel})-x86_64/pgdg-redhat-repo-latest.noarch.rpm
10+
```
11+
12+
1. **Add the $TIMESCALE_DB repository**
13+
14+
```bash
15+
sudo tee /etc/yum.repos.d/timescale_timescaledb.repo <<EOL
16+
[timescale_timescaledb]
17+
name=timescale_timescaledb
18+
baseurl=https://packagecloud.io/timescale/timescaledb/el/$(rpm -E %{rhel})/\$basearch
19+
repo_gpgcheck=1
20+
gpgcheck=0
21+
enabled=1
22+
gpgkey=https://packagecloud.io/timescale/timescaledb/gpgkey
23+
sslverify=1
24+
sslcacert=/etc/pki/tls/certs/ca-bundle.crt
25+
metadata_expire=300
26+
EOL
27+
```
28+
29+
<SelfHostedRedhatXPlatform />
30+
31+
32+
</Procedure>
33+
34+
[config]: /self-hosted/:currentVersion:/configuration/
Lines changed: 51 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,51 @@
1+
2+
import SelfHostedRocky from "versionContent/_partials/_install-self-hosted-redhat-rocky.mdx";
3+
4+
$COMPANY supports Rocky Linux 8 and 9 on amd64 only.
5+
6+
<Procedure>
7+
8+
1. **Update your local repository list**
9+
10+
```bash
11+
sudo dnf update -y
12+
sudo dnf install -y epel-release
13+
```
14+
15+
1. **Install the latest $PG packages**
16+
17+
```bash
18+
sudo dnf install -y https://download.postgresql.org/pub/repos/yum/reporpms/EL-9-x86_64/pgdg-redhat-repo-latest.noarch.rpm
19+
```
20+
21+
1. **Add the $TIMESCALE_DB repository**
22+
23+
```bash
24+
sudo tee /etc/yum.repos.d/timescale_timescaledb.repo <<EOL
25+
[timescale_timescaledb]
26+
name=timescale_timescaledb
27+
baseurl=https://packagecloud.io/timescale/timescaledb/el/9/\$basearch
28+
repo_gpgcheck=1
29+
gpgcheck=0
30+
enabled=1
31+
gpgkey=https://packagecloud.io/timescale/timescaledb/gpgkey
32+
sslverify=1
33+
sslcacert=/etc/pki/tls/certs/ca-bundle.crt
34+
metadata_expire=300
35+
EOL
36+
```
37+
38+
1. **Disable the built-in PostgreSQL module**
39+
40+
This is for Rocky Linux 9 only.
41+
42+
```bash
43+
sudo dnf module disable postgresql -y
44+
```
45+
46+
<SelfHostedRocky />
47+
48+
49+
</Procedure>
50+
51+
[config]: /self-hosted/:currentVersion:/configuration/

0 commit comments

Comments
 (0)