Last active
August 17, 2022 15:10
-
-
Save UbuntuEvangelist/8ec4180eb577c4e4f12f9e6107113c33 to your computer and use it in GitHub Desktop.
Installing gh On Ubuntu
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 | |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
If I follow up to line 13
sudo apt install gh
and then rungh --version
I get a response. So why thesudo xbps-install github-cli
step?