From 26cf3d9c66d8f14c88048ff9976383bb11905fc6 Mon Sep 17 00:00:00 2001 From: Diana Payton <52059945+oddlittlebird@users.noreply.github.com> Date: Thu, 9 Jul 2020 07:25:10 -0700 Subject: [PATCH] Docs: Update debian.md (#26100) * Update debian.md * Revert "Update debian.md" This reverts commit 063c1f09d9e490bd514bbd17b84c8bec38379295. * Update debian.md * Update debian.md * Update debian.md * Update docs/sources/installation/debian.md Co-authored-by: Arve Knudsen Co-authored-by: Arve Knudsen --- docs/sources/installation/debian.md | 31 ++++++++++++++++++----------- 1 file changed, 19 insertions(+), 12 deletions(-) diff --git a/docs/sources/installation/debian.md b/docs/sources/installation/debian.md index 42998d1c13f..530f796ed40 100644 --- a/docs/sources/installation/debian.md +++ b/docs/sources/installation/debian.md @@ -40,10 +40,20 @@ sudo apt-get install -y apt-transport-https sudo apt-get install -y software-properties-common wget wget -q -O - https://packages.grafana.com/gpg.key | sudo apt-key add - +Add this repository for stable releases: -# Alternatively you can add the beta repository, see in the table above -sudo add-apt-repository "deb https://packages.grafana.com/enterprise/deb stable main" +```bash +echo "deb 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 +``` + +After you add the repository: + +``` sudo apt-get update sudo apt-get install grafana-enterprise ``` @@ -54,18 +64,8 @@ sudo apt-get install grafana-enterprise sudo apt-get install -y apt-transport-https sudo apt-get install -y software-properties-common wget wget -q -O - https://packages.grafana.com/gpg.key | sudo apt-key add - - -# Alternatively you can add the beta repository, see in the table above -sudo add-apt-repository "deb https://packages.grafana.com/oss/deb stable main" - -sudo apt-get update -sudo apt-get install grafana ``` -### Set up repository for ARM - -If you have problems using `add-apt-repository`, you can set up the repository without it. - Add this repository for stable releases: ```bash @@ -77,6 +77,13 @@ Add this repository if you want beta releases: echo "deb https://packages.grafana.com/oss/deb beta main" | sudo tee -a /etc/apt/sources.list.d/grafana.list ``` +After you add the repository: + +``` +sudo apt-get update +sudo apt-get install grafana +``` + ### Install .deb package If you install the `.deb` package, then you will need to manually update Grafana for each new version.