fix: update readme to align with other docs (#10005)
This commit is contained in:
parent
5d2b5d15a7
commit
488568cafc
19
README.md
19
README.md
|
|
@ -43,24 +43,29 @@ page or from each [GitHub Releases](https://github.com/influxdata/telegraf/relea
|
|||
|
||||
InfluxData also provides a package repo that contains both DEB and RPM downloads.
|
||||
|
||||
For deb-based platforms run the following to add the repo key and setup a new
|
||||
sources.list entry:
|
||||
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
|
||||
curl -s https://repos.influxdata.com/influxdb.key | gpg --dearmor > /etc/apt/trusted.gpg.d/influxdb.gpg
|
||||
export DISTRIB_ID=$(lsb_release -si); export DISTRIB_CODENAME=$(lsb_release -sc)
|
||||
echo "deb [signed-by=/etc/apt/trusted.gpg.d/influxdb.gpg] https://repos.influxdata.com/${DISTRIB_ID,,} ${DISTRIB_CODENAME} stable" > /etc/apt/sources.list.d/influxdb.list
|
||||
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
|
||||
sudo apt-get update && sudo apt-get install telegraf
|
||||
```
|
||||
|
||||
For RPM-based platforms use the following repo file in `/etc/yum.repos.d/`:
|
||||
For RPM-based platforms (e.g. RHEL, CentOS) use the following to create a repo
|
||||
file and install telegraf:
|
||||
|
||||
```text
|
||||
```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
|
||||
enabled = 1
|
||||
gpgcheck = 1
|
||||
gpgkey = https://repos.influxdata.com/influxdb.key
|
||||
EOF
|
||||
sudo yum install telegraf
|
||||
```
|
||||
|
||||
### Build From Source
|
||||
|
|
|
|||
Loading…
Reference in New Issue