Skip to content

Commit

Permalink
Updating Ubuntu/Debian Install Commands (#310)
Browse files Browse the repository at this point in the history
* Updating Ubuntu/Debian Install Commands

Removing the use of deprecated apt-key command in our default install instructions

* Update README.md

Commenting full block for legacy commands

* Updating commands to be consistent

Original commands included sudo by default, which is more user-friendly. Updated the new commands to match this.

* Fixing formatting for CLI install commands

Fixing formatting for Ubuntu/Debian install commands

* Update README.md
  • Loading branch information
briggs-octo authored Feb 16, 2024
1 parent 0112f1b commit e643882
Showing 1 changed file with 13 additions and 2 deletions.
15 changes: 13 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -62,9 +62,20 @@ The Homebrew package has native support for macOS Intel and Apple Silicon

```shell
sudo apt update && sudo apt install --no-install-recommends gnupg curl ca-certificates apt-transport-https && \
curl -sSfL https://apt.octopus.com/public.key | sudo apt-key add - && \
sudo sh -c "echo deb https://apt.octopus.com/ stable main > /etc/apt/sources.list.d/octopus.com.list" && \
sudo install -m 0755 -d /etc/apt/keyrings && \
curl -fsSL https://apt.octopus.com/public.key | sudo gpg --dearmor -o /etc/apt/keyrings/octopus.gpg && \
sudo chmod a+r /etc/apt/keyrings/octopus.gpg && \
echo \
"deb [arch="$(dpkg --print-architecture)" signed-by=/etc/apt/keyrings/octopus.gpg] https://apt.octopus.com/ \
stable main" | \
sudo tee /etc/apt/sources.list.d/octopus.list > /dev/null && \
sudo apt update && sudo apt install octopus-cli

# for legacy Ubuntu/Debian (< 18.04) use
# sudo apt update && sudo apt install --no-install-recommends gnupg curl ca-certificates apt-transport-https && \
# curl -sSfL https://apt.octopus.com/public.key | sudo apt-key add - && \
# sudo sh -c "echo deb https://apt.octopus.com/ stable main > /etc/apt/sources.list.d/octopus.com.list" && \
# sudo apt update && sudo apt install octopus-cli
```

#### Linux (redhat/fedora based distributions)
Expand Down

0 comments on commit e643882

Please sign in to comment.