"Fossies" - the Fresh Open Source Software Archive  

Source code changes of the file "docs/install_linux.md" between
gh-cli-1.10.2.tar.gz and gh-cli-1.10.3.tar.gz

About: GitHub CLI is GitHub’s official command line tool.

install_linux.md  (gh-cli-1.10.2):install_linux.md  (gh-cli-1.10.3)
# Installing gh on Linux and FreeBSD # Installing gh on Linux and FreeBSD
Packages downloaded from https://cli.github.com or from https://github.com/cli/c li/releases Packages downloaded from https://cli.github.com or from https://github.com/cli/c li/releases
are considered official binaries. We focus on popular Linux distros and 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 behin d Other sources for installation are community-maintained and thus might lag behin d
our release schedule. our release schedule.
If none of our official binaries, packages, repositories, nor community sources work for you, we recommend using our `Makefile` to build `gh` from source. It's quick and easy. If none of our official binaries, packages, repositories, nor community sources work for you, we recommend using our `Makefile` to build `gh` from source. It's quick and easy.
## Official sources ## Official sources
### Debian, Ubuntu Linux (apt) ### Debian, Ubuntu Linux (apt)
Install (Using apt-key): :warning: This will only work for the [architectures we officially support](/.go releaser.yml#L27).
```bash The below should work for any debian-based distribution. You can change `stable`
sudo apt-key adv --keyserver keyserver.ubuntu.com --recv-key C99B11DEB97541F0 to a specific codename [we support](/.github/workflows/releases.yml#L83) if tha
sudo apt-add-repository https://cli.github.com/packages t is your preference.
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://keyse rver.ubuntu.com:80 --recv-key C99B11DEB97541F0`. Install:
**Note**: If you get _"gpg: failed to start the dirmngr '/usr/bin/dirmngr': No s
uch file or directory"_ error, try installing the `dirmngr` package. Run `sudo a
pt-get install dirmngr` and repeat the steps above.
**Note**: most systems will have `apt-add-repository` already. If you get a _com
mand not found_
error, try running `sudo apt install software-properties-common` and trying thes
e steps again.
Install (without add-apt-repository, with limited keyring scope):
```bash ```bash
sudo apt-key --keyring /usr/share/keyrings/githubcli-archive-keyring.gpg adv --k curl -fsSL https://cli.github.com/packages/githubcli-archive-keyring.gpg | sudo
eyserver keyserver.ubuntu.com --recv-key C99B11DEB97541F0 gpg --dearmor -o /usr/share/keyrings/githubcli-archive-keyring.gpg
echo "deb [arch=$(dpkg --print-architecture) signed-by=/usr/share/keyrings/githu echo "deb [arch=$(dpkg --print-architecture) signed-by=/usr/share/keyrings/githu
bcli-archive-keyring.gpg] https://cli.github.com/packages $(lsb_release -cs) mai bcli-archive-keyring.gpg] https://cli.github.com/packages stable main" | sudo te
n" | sudo tee /etc/apt/sources.list.d/github-cli2.list > /dev/null e /etc/apt/sources.list.d/github-cli.list > /dev/null
sudo apt update sudo apt update
sudo apt install gh sudo apt install gh
``` ```
**Note**: If you get _"gpg: failed to start the dirmngr '/usr/bin/dirmngr': No s
uch file or directory"_ error, try installing the `dirmngr` package. Run `sudo a
pt-get install dirmngr` and repeat the steps above.
Upgrade: Upgrade:
```bash ```bash
sudo apt update sudo apt update
sudo apt install gh sudo apt install gh
``` ```
### Fedora, CentOS, Red Hat Enterprise Linux (dnf) ### Fedora, CentOS, Red Hat Enterprise Linux (dnf)
Install: Install:
 End of changes. 7 change blocks. 
24 lines changed or deleted 15 lines changed or added

Home  |  About  |  Features  |  All  |  Newest  |  Dox  |  Diffs  |  RSS Feeds  |  Screenshots  |  Comments  |  Imprint  |  Privacy  |  HTTP(S)