fix: update RPM/DEB repo URLS (#3901)
We now have stable, codename agnostic repo URLs for installing via a DEB or RPM. These URLs prevent the need to update constantly when new versions and/or releases occur. It also ensures that as a new distros are released we do not need to add them. Co-authored-by: Scott Anderson <sanderson@users.noreply.github.com>pull/3970/head^2
parent
8a016af46d
commit
b84c11fda3
|
@ -67,8 +67,7 @@ Install Telegraf from the InfluxData repository with the following commands:
|
|||
{{% code-tab-content %}}
|
||||
```bash
|
||||
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
|
||||
echo "deb https://repos.influxdata.com/debian stable main" | sudo tee /etc/apt/sources.list.d/influxdb.list
|
||||
sudo apt-get update && sudo apt-get install telegraf
|
||||
```
|
||||
{{% /code-tab-content %}}
|
||||
|
@ -76,8 +75,7 @@ sudo apt-get update && sudo apt-get install telegraf
|
|||
{{% code-tab-content %}}
|
||||
```bash
|
||||
curl -s 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
|
||||
echo "deb https://repos.influxdata.com/debian stable main" | sudo tee /etc/apt/sources.list.d/influxdb.list
|
||||
sudo apt-get update && sudo apt-get install telegraf
|
||||
```
|
||||
{{% /code-tab-content %}}
|
||||
|
@ -124,8 +122,8 @@ For instructions on how to manually install the RPM package from a file, please
|
|||
```bash
|
||||
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
|
||||
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