diff --git a/.github/workflows/releases.yml b/.github/workflows/releases.yml index 7066ef561..c5d8011d7 100644 --- a/.github/workflows/releases.yml +++ b/.github/workflows/releases.yml @@ -80,7 +80,7 @@ jobs: popd - name: Run reprepro env: - RELEASES: "cosmic eoan disco groovy focal stable oldstable testing unstable buster bullseye stretch jessie bionic trusty precise xenial hirsute impish kali-rolling" + RELEASES: "cosmic eoan disco groovy focal stable oldstable testing sid unstable buster bullseye stretch jessie bionic trusty precise xenial hirsute impish kali-rolling" run: | mkdir -p upload for release in $RELEASES; do diff --git a/docs/install_linux.md b/docs/install_linux.md index da4d7169c..edc1b0979 100644 --- a/docs/install_linux.md +++ b/docs/install_linux.md @@ -2,7 +2,7 @@ Packages downloaded from https://cli.github.com or from https://github.com/cli/cli/releases are considered official binaries. We focus on popular Linux distros and -the following CPU architectures: `i386`, `amd64`, `arm64`. +the following CPU architectures: `i386`, `amd64`, `arm64`, `armhf`. Other sources for installation are community-maintained and thus might lag behind our release schedule. @@ -13,30 +13,21 @@ If none of our official binaries, packages, repositories, nor community sources ### Debian, Ubuntu Linux (apt) -Install (Using apt-key): +:warning: This will only work for the [architectures we officially support](/.goreleaser.yml#L27). + +The below should work for any debian-based distribution. You can change `stable` to a specific codename [we support](/.github/workflows/releases.yml#L83) if that is your preference. + +Install: ```bash -sudo apt-key adv --keyserver keyserver.ubuntu.com --recv-key C99B11DEB97541F0 -sudo apt-add-repository https://cli.github.com/packages +curl -fsSL https://cli.github.com/packages/githubcli-archive-keyring.gpg | sudo gpg --dearmor -o /usr/share/keyrings/githubcli-archive-keyring.gpg +echo "deb [arch=$(dpkg --print-architecture) signed-by=/usr/share/keyrings/githubcli-archive-keyring.gpg] https://cli.github.com/packages stable main" | sudo tee /etc/apt/sources.list.d/github-cli.list > /dev/null sudo apt update sudo apt install gh ``` -**Note**: If you are behind a firewall, the connection to `keyserver.ubuntu.com` might fail. In that case, try running `sudo apt-key adv --keyserver hkp://keyserver.ubuntu.com:80 --recv-key C99B11DEB97541F0`. - **Note**: If you get _"gpg: failed to start the dirmngr '/usr/bin/dirmngr': No such file or directory"_ error, try installing the `dirmngr` package. Run `sudo apt-get install dirmngr` and repeat the steps above. -**Note**: most systems will have `apt-add-repository` already. If you get a _command not found_ -error, try running `sudo apt install software-properties-common` and trying these steps again. - -Install (without add-apt-repository, with limited keyring scope): -```bash -sudo apt-key --keyring /usr/share/keyrings/githubcli-archive-keyring.gpg adv --keyserver keyserver.ubuntu.com --recv-key C99B11DEB97541F0 -echo "deb [arch=$(dpkg --print-architecture) signed-by=/usr/share/keyrings/githubcli-archive-keyring.gpg] https://cli.github.com/packages $(lsb_release -cs) main" | sudo tee /etc/apt/sources.list.d/github-cli2.list > /dev/null -sudo apt update -sudo apt install gh -``` - Upgrade: ```bash diff --git a/script/distributions b/script/distributions index 51b4d194d..6fada64b2 100644 --- a/script/distributions +++ b/script/distributions @@ -30,6 +30,14 @@ Components: main Description: The GitHub CLI - debian unstable repo SignWith: C99B11DEB97541F0 +Origin: gh +Label: gh +Codename: sid +Architectures: i386 amd64 armhf arm64 +Components: main +Description: The GitHub CLI - debian unstable repo +SignWith: C99B11DEB97541F0 + Origin: gh Label: gh Codename: buster