From 972376ccc7151e63110b6b4870e40b8f4aa64bca Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Jo=C3=A3o=20Palet?= Date: Thu, 4 Apr 2024 18:08:19 +0100 Subject: [PATCH 1/2] Revert "Temporarily remove APT installation instructions from guide (#162)" This reverts commit 64faf3994fd528c817cdd2944dc7fa7fafb83e05. --- INSTALLATION.md | 39 +++++++++++++++++++++++++++++++++++++-- 1 file changed, 37 insertions(+), 2 deletions(-) diff --git a/INSTALLATION.md b/INSTALLATION.md index 2fe283545..9d56b8c9e 100644 --- a/INSTALLATION.md +++ b/INSTALLATION.md @@ -20,9 +20,44 @@ brew install stackit ### Linux -Currently, you can install via [Homebrew](https://brew.sh/) or refer to one of the installation methods below. +#### Debian/Ubuntu (`APT`) -> We are currently working on distributing the CLI on package managers for Linux. +The STACKIT CLI can be installed through the [`APT`](https://ubuntu.com/server/docs/package-management) package manager. + +##### Before you begin + +To install the STACKIT CLI package, you will need to have the `curl` and `gnupg` packages installed: +```shell +sudo apt-get update +sudo apt-get install curl gnupg +``` + +##### Installing + +1. Import the STACKIT public key: + +```shell +curl https://object.storage.eu01.onstackit.cloud/stackit-public-key/key.gpg | sudo gpg --dearmor -o /usr/share/keyrings/stackit.gpg +``` + +2. Add the STACKIT CLI package repository as a package source: + +```shell +echo "deb [signed-by=/usr/share/keyrings/stackit.gpg] https://object.storage.eu01.onstackit.cloud/stackit-cli-apt stackit main" | sudo tee -a /etc/apt/sources.list.d/stackit.list +``` + +3. Update repository information and install the `stackit` package: + +```shell +sudo apt-get update +sudo apt-get install stackit +``` + +#### Any distribution + +Alternatively, you can install via [Homebrew](https://brew.sh/) or refer to one of the installation methods below. + +> We are currently working on distributing the CLI on more package managers for Linux. ### Windows From 1717601001bac0b5c325b198d0608a24e22f7651 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Jo=C3=A3o=20Palet?= Date: Thu, 4 Apr 2024 18:10:29 +0100 Subject: [PATCH 2/2] Replace APT repo URL --- INSTALLATION.md | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/INSTALLATION.md b/INSTALLATION.md index 9d56b8c9e..7d79bf20c 100644 --- a/INSTALLATION.md +++ b/INSTALLATION.md @@ -27,6 +27,7 @@ The STACKIT CLI can be installed through the [`APT`](https://ubuntu.com/server/d ##### Before you begin To install the STACKIT CLI package, you will need to have the `curl` and `gnupg` packages installed: + ```shell sudo apt-get update sudo apt-get install curl gnupg @@ -37,13 +38,13 @@ sudo apt-get install curl gnupg 1. Import the STACKIT public key: ```shell -curl https://object.storage.eu01.onstackit.cloud/stackit-public-key/key.gpg | sudo gpg --dearmor -o /usr/share/keyrings/stackit.gpg +curl https://packages.stackit.cloud/keys/key.gpg | sudo gpg --dearmor -o /usr/share/keyrings/stackit.gpg ``` 2. Add the STACKIT CLI package repository as a package source: ```shell -echo "deb [signed-by=/usr/share/keyrings/stackit.gpg] https://object.storage.eu01.onstackit.cloud/stackit-cli-apt stackit main" | sudo tee -a /etc/apt/sources.list.d/stackit.list +echo "deb [signed-by=/usr/share/keyrings/stackit.gpg] https://packages.stackit.cloud/apt/cli stackit main" | sudo tee -a /etc/apt/sources.list.d/stackit.list ``` 3. Update repository information and install the `stackit` package: