Skip to content

Instantly share code, notes, and snippets.

@UbuntuEvangelist
Last active August 17, 2022 15:10
Show Gist options
  • Save UbuntuEvangelist/8ec4180eb577c4e4f12f9e6107113c33 to your computer and use it in GitHub Desktop.
Save UbuntuEvangelist/8ec4180eb577c4e4f12f9e6107113c33 to your computer and use it in GitHub Desktop.
Installing gh On Ubuntu
curl -fsSL https://cli.github.com/packages/githubcli-archive-keyring.gpg | sudo dd of=/usr/share/keyrings/githubcli-archive-keyring.gpg
chmod go+r /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
apt update
apt install gh
sudo apt update
sudo apt install gh
sudo xbps-install github-cli
@benmar000
Copy link

If I follow up to line 13 sudo apt install gh and then run gh --version I get a response. So why the sudo xbps-install github-cli step?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment