Skip to content

chore(docs): reorganize installation docs #11465

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 12 commits into from
Jan 10, 2024
Prev Previous commit
Next Next commit
fmt
  • Loading branch information
matifali committed Jan 8, 2024
commit 2a651a6dd7794a8fb646f4d87f786c20b4c0aa4f
95 changes: 43 additions & 52 deletions docs/install/index.md
Original file line number Diff line number Diff line change
Expand Up @@ -66,66 +66,57 @@ Coder officially maintains packages for the following Linux distributions:
- .rpm (Fedora, CentOS, RHEL, SUSE)
- .apk (Alpine)

<div class="tabs">
<div class="tabs">

## Debian, Ubuntu

Get the latest `.deb` package from our
[GitHub releases](https://github.com/coder/coder/releases/latest) and install it
manually or use the following commands to download and install the latest `.deb`
package.

## Debian, Ubuntu

Get the latest `.deb` package from our
[GitHub releases](https://github.com/coder/coder/releases/latest) and install
it manually or use the following commands to download and install the latest
`.deb` package.

```shell
# Download the latest .deb package from GitHub releases
URL=$(curl -s https://api.github.com/repos/coder/coder/releases/latest | jq -r '.assets[] | select(.name | endswith("linux_amd64.deb")) | .browser_download_url')
curl -fsSL $URL -o coder.deb
# Install the package
sudo apt install ./coder.deb
```

## Fedora, CentOS, RHEL, SUSE

Get the latest `.rpm` package from our
[GitHub releases](https://github.com/coder/coder/releases/latest) and install
it manually or use the following commands to download and install the latest
`.rpm` package.

```shell
# Download the latest .rpm package from GitHub releases
URL=$(curl -s https://api.github.com/repos/coder/coder/releases/latest | jq -r '.assets[] | select(.name | endswith("linux_amd64.rpm")) | .browser_download_url')
curl -fsSL $URL -o coder.rpm
# Install the package
sudo yum install ./coder.rpm
```

## Alpine

Get the latest `.apk` package from our
[GitHub releases](https://github.com/coder/coder/releases/latest) and install
it manually or use the following commands to download and install the latest
`.apk` package.

```shell
# Download the latest .apk package from GitHub releases
URL=$(curl -s https://api.github.com/repos/coder/coder/releases/latest | jq -r '.assets[] | select(.name | endswith("linux_amd64.apk")) | .browser_download_url')
curl -fsSL $URL -o coder.apk
# Install the package
sudo apk add ./coder.apk
```

</div>
```shell
# Install the package
sudo apt install ./coder.deb
```

## Fedora, CentOS, RHEL, SUSE

Get the latest `.rpm` package from our
[GitHub releases](https://github.com/coder/coder/releases/latest) and install it
manually or use the following commands to download and install the latest `.rpm`
package.

```shell
# Install the package
sudo yum install ./coder.rpm
```

## Alpine

Get the latest `.apk` package from our
[GitHub releases](https://github.com/coder/coder/releases/latest) and install it
manually or use the following commands to download and install the latest `.apk`
package.

```shell
# Install the package
sudo apk add ./coder.apk
```

</div>

## Manual

Retrieve the latest release from our GitHub releases page and install it
manually.

1. Download the
[release archive](https://github.com/coder/coder/releases/latest)
appropriate for your operating system
1. Download the
[release archive](https://github.com/coder/coder/releases/latest) appropriate
for your operating system

2. Unzip the folder you just downloaded, and move the `coder` executable to a
location that's on your `PATH`
2. Unzip the folder you just downloaded, and move the `coder` executable to a
location that's on your `PATH`

```shell
# ex. macOS and Linux
Expand Down