docs: update rpm/deb instructions with stable URLs (#10905)
This commit is contained in:
parent
141279f1de
commit
76b1737368
13
README.md
13
README.md
|
|
@ -46,9 +46,8 @@ For deb-based platforms (e.g. Ubuntu and Debian) run the following to add the
|
|||
repo key and setup a new sources.list entry:
|
||||
|
||||
```shell
|
||||
wget -qO- https://repos.influxdata.com/influxdb.key | sudo tee /etc/apt/trusted.gpg.d/influxdb.asc >/dev/null
|
||||
source /etc/os-release
|
||||
echo "deb https://repos.influxdata.com/${ID} ${VERSION_CODENAME} stable" | sudo tee /etc/apt/sources.list.d/influxdb.list
|
||||
wget -qO- https://repos.influxdata.com/influxdb.key | sudo tee /etc/apt/trusted.gpg.d/influxdata.asc >/dev/null
|
||||
echo "deb https://repos.influxdata.com/debian stable main" | sudo tee /etc/apt/sources.list.d/influxdata.list
|
||||
sudo apt-get update && sudo apt-get install telegraf
|
||||
```
|
||||
|
||||
|
|
@ -56,10 +55,10 @@ For RPM-based platforms (e.g. RHEL, CentOS) use the following to create a repo
|
|||
file and install telegraf:
|
||||
|
||||
```shell
|
||||
cat <<EOF | sudo tee /etc/yum.repos.d/influxdb.repo
|
||||
[influxdb]
|
||||
name = InfluxDB Repository - RHEL $releasever
|
||||
baseurl = https://repos.influxdata.com/rhel/\$releasever/\$basearch/stable
|
||||
cat <<EOF | sudo tee /etc/yum.repos.d/influxdata.repo
|
||||
[influxdata]
|
||||
name = InfluxData Repository - Stable
|
||||
baseurl = https://repos.influxdata.com/stable/\$basearch/main
|
||||
enabled = 1
|
||||
gpgcheck = 1
|
||||
gpgkey = https://repos.influxdata.com/influxdb.key
|
||||
|
|
|
|||
Loading…
Reference in New Issue