Skip to content

Commit 084afb3

Browse files
author
Charlie Tonneslan
committed
docs: drop --repo gh-cli from dnf install lines
The documented dnf install lines pin resolution to the gh-cli repo with --repo gh-cli. That repo only ships the gh package, so on a fresh Fedora install without git already present the install fails with "nothing provides git needed by gh-2.87.3-1.x86_64 from gh-cli" (cli#12808). Dropping --repo lets dnf pull git from the system repos while still installing gh from gh-cli. The maintainer suggested this in the issue thread after spotting that other projects (docker, vagrant) use addrepo without the restrictive --repo flag. Closes cli#12808 Signed-off-by: Charlie Tonneslan <cst0520@gmail.com>
1 parent b99d73d commit 084afb3

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

docs/install_linux.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -100,7 +100,7 @@ To install:
100100
```bash
101101
sudo dnf install dnf5-plugins
102102
sudo dnf config-manager addrepo --from-repofile=https://cli.github.com/packages/rpm/gh-cli.repo
103-
sudo dnf install gh --repo gh-cli
103+
sudo dnf install gh
104104
```
105105
106106
To upgrade:
@@ -119,7 +119,7 @@ To install:
119119
```bash
120120
sudo dnf install 'dnf-command(config-manager)'
121121
sudo dnf config-manager --add-repo https://cli.github.com/packages/rpm/gh-cli.repo
122-
sudo dnf install gh --repo gh-cli
122+
sudo dnf install gh
123123
```
124124
125125
To upgrade:

0 commit comments

Comments
 (0)