From e027f1ef10ea65f6783d2c73a3c6683108b1a605 Mon Sep 17 00:00:00 2001 From: Christopher Moyer <35463610+chri2547@users.noreply.github.com> Date: Wed, 6 Sep 2023 10:55:53 -0500 Subject: [PATCH] Docs: adjustments to Ubuntu install based on user feedback (#74406) * adjustments based on user feedback * makes prettier * Apply suggestions from code review * Update docs/sources/setup-grafana/installation/debian/index.md * Update docs/sources/setup-grafana/installation/debian/index.md --- .../setup-grafana/installation/debian/index.md | 17 +++++++++++------ 1 file changed, 11 insertions(+), 6 deletions(-) diff --git a/docs/sources/setup-grafana/installation/debian/index.md b/docs/sources/setup-grafana/installation/debian/index.md index 093c58218a7..33134f67556 100644 --- a/docs/sources/setup-grafana/installation/debian/index.md +++ b/docs/sources/setup-grafana/installation/debian/index.md @@ -39,24 +39,29 @@ Grafana Enterprise is the recommended and default edition. It is available for f Complete the following steps to install Grafana from the APT repository: -1. To install required packages and download the Grafana repository signing key, run the following commands: +1. Install the prerequisite packages: ```bash - 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://apt.grafana.com/gpg.key + sudo apt-get install -y apt-transport-https software-properties-common wget + ``` + +1. Import the GPG key: + + ```bash + sudo mkdir -p /etc/apt/keyrings/ + wget -q -O - https://apt.grafana.com/gpg.key | gpg --dearmor | sudo tee /etc/apt/keyrings/grafana.gpg > /dev/null ``` 1. To add a repository for stable releases, run the following command: ```bash - echo "deb [signed-by=/usr/share/keyrings/grafana.key] https://apt.grafana.com stable main" | sudo tee -a /etc/apt/sources.list.d/grafana.list + echo "deb [signed-by=/etc/apt/keyrings/grafana.gpg] https://apt.grafana.com stable main" | sudo tee -a /etc/apt/sources.list.d/grafana.list ``` 1. To add a repository for beta releases, run the following command: ```bash - echo "deb [signed-by=/usr/share/keyrings/grafana.key] https://apt.grafana.com beta main" | sudo tee -a /etc/apt/sources.list.d/grafana.list + echo "deb [signed-by=/etc/apt/keyrings/grafana.gpg] https://apt.grafana.com beta main" | sudo tee -a /etc/apt/sources.list.d/grafana.list ``` 1. Run the following command to update the list of available packages: