mirror of
https://github.com/grafana/grafana.git
synced 2025-02-13 17:15:40 -06:00
Docs: Replace apt-key command with signed-by option (#44885)
* replace apt-key command with signed-by option * add gpg command to meet debian best practices * delete old file * update filepath
This commit is contained in:
parent
2b46138202
commit
667ae91323
@ -38,19 +38,21 @@ If you install from the APT repository, then Grafana is automatically updated ev
|
||||
#### To install the latest Enterprise edition:
|
||||
|
||||
```bash
|
||||
wget -q -O - https://packages.grafana.com/gpg.key | sudo apt-key add -
|
||||
sudo apt-get install -y apt-transport-https
|
||||
sudo apt-get install -y software-properties-common wget
|
||||
sudo wget -q -O /usr/share/keyrings/grafana.key https://packages.grafana.com/gpg.key
|
||||
```
|
||||
|
||||
Add this repository for stable releases:
|
||||
|
||||
```bash
|
||||
echo "deb https://packages.grafana.com/enterprise/deb stable main" | sudo tee -a /etc/apt/sources.list.d/grafana.list
|
||||
echo "deb [signed-by=/usr/share/keyrings/grafana.key] https://packages.grafana.com/enterprise/deb stable main" | sudo tee -a /etc/apt/sources.list.d/grafana.list
|
||||
```
|
||||
|
||||
Add this repository if you want beta releases:
|
||||
|
||||
```bash
|
||||
echo "deb https://packages.grafana.com/enterprise/deb beta main" | sudo tee -a /etc/apt/sources.list.d/grafana.list
|
||||
echo "deb [signed-by=/usr/share/keyrings/grafana.key] https://packages.grafana.com/enterprise/deb beta main" | sudo tee -a /etc/apt/sources.list.d/grafana.list
|
||||
```
|
||||
|
||||
After you add the repository:
|
||||
@ -63,20 +65,21 @@ sudo apt-get install grafana-enterprise
|
||||
#### To install the latest OSS release:
|
||||
|
||||
```bash
|
||||
sudo apt-get install -y wget
|
||||
wget -q -O - https://packages.grafana.com/gpg.key | sudo apt-key add -
|
||||
sudo apt-get install -y apt-transport-https
|
||||
sudo apt-get install -y software-properties-common wget
|
||||
sudo wget -q -O /usr/share/keyrings/grafana.key https://packages.grafana.com/gpg.key
|
||||
```
|
||||
|
||||
Add this repository for stable releases:
|
||||
|
||||
```bash
|
||||
echo "deb https://packages.grafana.com/oss/deb stable main" | sudo tee -a /etc/apt/sources.list.d/grafana.list
|
||||
echo "deb [signed-by=/usr/share/keyrings/grafana.key] https://packages.grafana.com/oss/deb stable main" | sudo tee -a /etc/apt/sources.list.d/grafana.list
|
||||
```
|
||||
|
||||
Add this repository if you want beta releases:
|
||||
|
||||
```bash
|
||||
echo "deb https://packages.grafana.com/oss/deb beta main" | sudo tee -a /etc/apt/sources.list.d/grafana.list
|
||||
echo "deb [signed-by=/usr/share/keyrings/grafana.key] https://packages.grafana.com/oss/deb beta main" | sudo tee -a /etc/apt/sources.list.d/grafana.list
|
||||
```
|
||||
|
||||
After you add the repository:
|
||||
|
Loading…
Reference in New Issue
Block a user