Skip to content

Instantly share code, notes, and snippets.

@tornikeo
Created November 8, 2024 19:28
Show Gist options
  • Save tornikeo/332932f09058ac469b51bfb1dea2c8ed to your computer and use it in GitHub Desktop.
Save tornikeo/332932f09058ac469b51bfb1dea2c8ed to your computer and use it in GitHub Desktop.

Revisions

  1. tornikeo created this gist Nov 8, 2024.
    7 changes: 7 additions & 0 deletions install_gh.sh
    Original file line number Diff line number Diff line change
    @@ -0,0 +1,7 @@
    (type -p wget >/dev/null || (sudo apt update && sudo apt-get install wget -y)) \
    && sudo mkdir -p -m 755 /etc/apt/keyrings \
    && wget -qO- https://cli.github.com/packages/githubcli-archive-keyring.gpg | sudo tee /etc/apt/keyrings/githubcli-archive-keyring.gpg > /dev/null \
    && sudo chmod go+r /etc/apt/keyrings/githubcli-archive-keyring.gpg \
    && 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