Merge pull request #6670 from influxdata/jdstrand/fix-rpm-install2

fix: use sudo with 'yum install' and create the keyring dir if needed
pull/6673/head
Jamie Strandboge 2025-12-23 10:47:31 -06:00 committed by GitHub
commit 42e17de7d6
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
1 changed files with 2 additions and 1 deletions

View File

@ -171,6 +171,7 @@ Use `yum` to install {{< product-name >}} from the InfluxData repository:
```bash
curl --silent --location -O https://repos.influxdata.com/influxdata-archive.key
test -d /usr/share/influxdata-archive-keyring/keyrings || sudo mkdir -p /usr/share/influxdata-archive-keyring/keyrings
gpg --show-keys --with-fingerprint --with-colons ./influxdata-archive.key 2>&1 \
| grep -q '^fpr:\+24C975CBA61A024EE1B631787C3D57159FC2F927:$' \
&& sudo cp ./influxdata-archive.key /usr/share/influxdata-archive-keyring/keyrings/influxdata-archive.asc \
@ -182,7 +183,7 @@ enabled = 1
gpgcheck = 1
gpgkey = file:///usr/share/influxdata-archive-keyring/keyrings/influxdata-archive.asc
EOF
yum install influxdb3-{{< product-key >}}
sudo yum install influxdb3-{{< product-key >}}
```
{{% /expand %}}