Andy Feller
5b9324bb46
PR feedback from @bagtoad
2025-08-11 16:50:12 -04:00
Andy Feller
2faba515d8
Apply suggestion from @Copilot
...
Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>
2025-08-08 14:59:35 -04:00
Andy Feller
63462f8e40
Consolidate repo profile, fix headings
...
After discussing changes with @bagtoad, we talked about consolidating the top-level readme further to reduce the amount of links.
Additionally, the Amazon Linux 2 and openSUSE/SUSE sections weren't contained appropriately in the official sections.
2025-08-08 14:21:25 -04:00
Andy Feller
2b11fff6dc
markdown lint fixes
2025-08-07 20:31:17 -04:00
Andy Feller
d992d51b6e
Formatting
2025-08-07 20:26:33 -04:00
Andy Feller
60af6bcb49
Initial installation doc refactor
...
These changes work to improve GitHub CLI users experience by bringing:
- clarity between official and unofficial installation methods
- insight into unofficial installation methods
- consistency across supported operating systems
2025-08-07 20:15:46 -04:00
Tobias Klauser
fbb749613a
docs: consistently use apt in installation instructions
...
Don't mix apt and apt-get, consistently use apt.
2025-07-03 15:16:07 +02:00
Stefan Heimersheim
e062330163
Fix inconsistent use of tabs and spaces
...
The code below used spaces to indent two of the lines, and tabs for the other 6 lines. This makes indenting inconsistent in settings where tabs are not rendered as 8 spaces. I've replaced the spaces with tabs.
```
(type -p wget >/dev/null || (sudo apt update && sudo apt-get install wget -y)) \
&& sudo mkdir -p -m 755 /etc/apt/keyrings \
&& out=$(mktemp) && wget -nv -O$out https://cli.github.com/packages/githubcli-archive-keyring.gpg \
&& cat $out | sudo tee /etc/apt/keyrings/githubcli-archive-keyring.gpg > /dev/null \
&& sudo chmod go+r /etc/apt/keyrings/githubcli-archive-keyring.gpg \
&& sudo mkdir -p -m 755 /etc/apt/sources.list.d \
&& echo "deb [arch=$(dpkg --print-architecture) signed-by=/etc/apt/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 -y
```
2025-07-01 11:43:04 +01:00
Kynan Ware
74d10f8dec
Fix missing newline in install_linux.md
2025-06-23 11:16:20 -06:00
Kynan Ware
802a75b19a
Apply suggestions from code review
2025-06-23 10:23:10 -06:00
Kynan Ware
8541d6e290
Merge branch 'trunk' into install_solus
2025-06-23 09:42:11 -06:00
William Martin
b5613cdbbe
Merge pull request #10699 from laffer1/patch-1
...
Add instructions for MidnightBSD installation
2025-06-17 16:55:53 +02:00
William Martin
6b36060d58
Update docs/install_linux.md
2025-06-17 16:43:25 +02:00
Vibhakar Solanki
1ac3f064f3
docs: update install command for Debian
...
Make sure that `sources.list.d` exists before trying to populate `github-cli.list`
2025-06-17 16:39:58 +02:00
chax
6740f6d1c2
docs: install_linux.md: add Solus linux install instructions
2025-04-18 01:38:32 +02:00
Lucas Holt
af87389a19
Add instructions for MidnightBSD installation
2025-04-02 09:09:36 -04:00
AMS21
960f533234
add install instructions for Manjaro Linux
2025-01-13 20:01:28 +01:00
Jonas Grabber
881a2a374c
Improve error handling in apt setup script
...
`wget -qO- ... | sudo tee` causes any errors from `wget` to be swallowed up, causing an empty keyring file to be configured.
For us, the local Ubuntu setup did not have `ca-certificates` installed, which caused `wget` to error out because of a authentication errors (untrusted certificate). However, the `-q` flag and the pipe into `tee` prevented the error from showing up or halting the script.
This PR turns on non-verbose output for `wget` and adds a proper short-circuit on the return code of it by storing the keyring in a temporary file first.
2024-12-10 15:49:55 +01:00
Kynan Ware
4f4602a682
Improve DNF version clarity in install steps
2024-11-29 16:34:41 -07:00
Miroma
a3f353d2f7
Set dnf5 commands as default
...
Fedora 41 is now stable! 🎉
Closes #9840
Co-authored-by: Melamit64 <151834564+melamit@users.noreply.github.com>
2024-10-29 09:52:03 +01:00
Miroma
4de63ac75b
Include dnf5 commands
2024-09-28 07:58:14 +02:00
Miroma
c843dddf0d
Add GPG key instructions to appropriate sections
2024-09-25 21:55:29 +02:00
Andy Feller
5a7cdff9db
Update linux install to point to GPG troubleshoot
...
Relates #9569
Updates notes from older 2 year GPG ID change to redirect users in case of GPG errors to recent issue.
2024-09-06 08:45:24 -04:00
Andy Feller
78fa57dff7
Revert "Remove note explaining 2 year old GPG ID change"
...
This reverts commit 043bdbedb9 .
2024-09-06 08:41:59 -04:00
Andy Feller
043bdbedb9
Remove note explaining 2 year old GPG ID change
...
Relates #9569
Having been 2 years since the GitHub CLI changed GPG keys used to sign our releases, it no longer seems relevant to keep these notes in our installation docs as they are confusing to the uninitiated.
2024-09-06 08:36:04 -04:00
William Martin
d40175fbe5
Add flox to linux installation instructions
2024-08-19 13:48:45 +02:00
Houssem Ben Ali
fc8b86b4c8
Specify rpm repository to avoid conflicts with community repositories
2024-05-30 17:31:09 +02:00
richterdavid
8009e79113
Update install_linux.md ( #8950 )
...
Co-authored-by: richterdavid <richterdavid@nospam.me>
Co-authored-by: William Martin <williammartin@github.com>
2024-04-16 17:37:25 +02:00
Nguyễn Hồng Quân
e67467cea7
Handle case: some system set 600 mod for new file.
2024-03-01 09:43:35 +07:00
Nguyễn Hồng Quân
4bfc00294e
Simplify install command for Debian & Ubuntu
2024-02-14 11:33:56 +07:00
Xeonacid
96c1e2e3ab
Update Arch repo to [extra]
...
Arch has merged [community] into [extra]
2024-01-22 20:52:25 +08:00
Hermann Stanew
fd7f987e58
Fix up Nix installation instructions ( #7891 )
2023-08-24 16:30:55 +00:00
Mislav Marohnić
a4b9d41e79
Improve Amazon Linux install instructions
2023-03-30 11:30:12 +02:00
S R Gokul Krishnan
239a515faa
Added apt update command to linux install docs.
2023-03-17 14:27:47 +00:00
Mislav Marohnić
46ae58bcd9
Fix Ubuntu installation instructions for curl
...
Newer Ubuntu doesn't come with curl preinstalled anymore.
2022-09-27 19:26:48 +02:00
Jonáš Jančařík
e7e2c8e3ab
Add instructions for yum (e.g. Amazon Linux 2)
...
Installing with `yum` works similar to `dnf` - I haven't had any issues so far.
2022-09-22 11:27:56 +02:00
Mislav Marohnić
23933fd527
Restore Debian installation instructions
2022-09-06 16:43:03 +02:00
3x!1
b53c2c37e9
Link to the issue for more information. ( #6189 )
2022-09-04 16:10:49 +00:00
vilmibm
f2fa43a508
mention broken deb installation
2022-09-02 18:15:39 -06:00
Md. Sazzad Hossain Sharkar
67b4fcb508
Update install_linux.md
...
Make Debian, Ubuntu Linux, and Raspberry Pi OS (apt) installation in a single command
2022-08-22 16:45:24 +06:00
Mislav Marohnić
449460ebb0
Linux installation: ensure GPG keyring is world-readable
...
This alleviates problems with umask at the time of installation.
2022-06-22 21:40:42 +02:00
Oleg Solomka
868a03c0ca
[install_linux.md]: fix typo ( #5446 )
...
`packaage` -> `package`
2022-04-13 07:24:27 +02:00
Brian McColgan
a4cc118fff
Update install_linux.md
...
Added missing directive (bash) to ensure dnf has config-manager command correctly loaded, prior to adding a repo. Usually missing e.g., in a Docker container.
2022-04-05 14:23:29 -04:00
Hanjingxue Boling
f4b4a4e18f
Update installation instructions for Fedora ( #5204 )
...
gh-cli has entered fedora's official repository and can be installed directly without adding a third-party repository.
Co-authored-by: Mislav Marohnić <mislav@github.com>
2022-02-17 18:41:26 +00:00
nate smith
32dada90ba
revert PR 4998
2022-02-14 10:35:09 -06:00
Malte Gejr
5fe7ee3f86
Added install instructions for Void Linux
...
The package is added to the unofficial/community maintained list.
2022-01-30 14:53:26 +01:00
Nate Smith
13b3c7c1a4
Merge pull request #4998 from SubOptimal/patch-1
...
Amend location of GPG key file
2022-01-25 14:09:57 -06:00
nate smith
e51a4b5562
that did not work
2022-01-25 13:50:11 -06:00
nate smith
f2e76bea5d
minor wording, arrangement
2022-01-25 13:49:38 -06:00
Frank Dietrich
0ac546a81f
Amend location of GPG key file
...
Following the Debian [documentation](https://wiki.debian.org/SecureApt ) the keyring should be stored in `/etc/apt/trusted.gpg.d/.
> In more recent Debian GNU/Linux versions (Wheezy, for example), the keyrings are stored in specific files all located in the `/etc/apt/trusted.gpg.d` directory.
2022-01-06 09:16:27 +01:00