Skip to content

Add extrepo as an unofficial installation method #14256

Closed

Description

@linghengqian

Describe the feature or problem you’d like to solve

A clear and concise description of what the feature or problem is.

Proposed solution

  • Add installation via PPA. This sounds like,
sudo add-apt-repository ppa:gh/cli
sudo apt update
sudo apt install --assume-yes gh

How will it benefit CLI and its users?

(type -p wget >/dev/null || (sudo apt update && sudo apt 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

Additional context

Add any other context like screenshots or mockups are helpful, if applicable.

Activity

  1. cli-triage commented on Aug 25, 2026

    @cli-triage

    Thanks for the suggestion! This looks like a clear enhancement request proposing PPA-based installation to simplify the current Debian/Ubuntu install instructions, so I'm suggesting the enhancement label. I didn't find any existing duplicate issues for PPA-based installation in this repo.

    Generated by Issue Triage (skills-driven) for #14256 · auto · 19.9 AIC · ⌖ 1.47 AIC · ⊞ 9.7K · ◷

  2. compilersEllie commented on Aug 27, 2026

    @compilersEllie

    Also the current Ubuntu/Debian release appears to be very out dated

    gh version 2.45.0 (2026-03-17 Ubuntu 2.45.0-1ubuntu0.3+esm3)
    https://github.com/cli/cli/releases/tag/v2.45.0
    
  3. linghengqian commented on Aug 27, 2026

    @linghengqian
    Author

    Also the current Ubuntu/Debian release appears to be very out dated

    sudo apt install -y extrepo
    sudo extrepo enable gh
    sudo apt update
    sudo apt install -y gh
  4. williammartin commented on Aug 27, 2026

    @williammartin
    Member

    Also the current Ubuntu/Debian release appears to be very out dated

    Yes, we don't own the official debian/ubuntu releases, though we've talked about trying to do so.

    Add installation via PPA

    I really dislike our current self-hosted repository situation but I'm not that excited about splitting our release pipeline just for streamlined ubuntu installation. If this is mostly about copy+paste, we could host the commands in a script for you to pipe to bash. Some people have opinions about that, but it could reasonably be an option for those who want the shorter option.

  5. github-actions commented on Aug 27, 2026

    @github-actions
    Contributor

    Thank you for your issue! We have categorized it as an enhancement (feature or improvement) request, and it has been added to our backlog. In doing so, we are not committing to implementing this feature at this time, but, we will consider it for future releases based on community feedback and our own product roadmap.

    Unless you see the help wanted Contributions welcome label, we are not currently looking for external contributions for this feature.

    If you come across this issue and would like to see it implemented, please add a thumbs up! This will help us prioritize the feature. Please only comment if you have additional information or viewpoints to contribute.

  6. linghengqian commented on Aug 27, 2026

    @linghengqian
    Author

    I really dislike our current self-hosted repository situation but I'm not that excited about splitting our release pipeline just for streamlined ubuntu installation. If this is mostly about copy+paste, we could host the commands in a script for you to pipe to bash. Some people have opinions about that, but it could reasonably be an option for those who want the shorter option.

    Since we agree that both Ubuntu and Debian must be considered, why not register the https://cli.github.com/packages source—referenced in that extremely long command—with https://salsa.debian.org/extrepo-team/extrepo ? I don't seem to have found any discussion issues related to extrepo.

  7. BagToad commented on Aug 27, 2026

    @BagToad
    Member

    Also the current Ubuntu/Debian release appears to be very out dated

    @cypher1 That is not maintained by us and should be considered dangerous to use. I highly recommend you uninstall it and install the latest version from our official sources.

    I also recommend you revoke/refresh any authentication tokens you may have used with that unofficial / unmaintained build.

  8. williammartin commented on Aug 28, 2026

    @williammartin
    Member

    @linghengqian I'm not familiar with extrepo, though I see that someone has registered the CLI there: https://salsa.debian.org/extrepo-team/extrepo-data/-/blob/master/repos/debian/github-cli.yaml?ref_type=heads

    I could imagine including instructions for this somewhere, though I'd need to do further investigation. Thanks for the suggestion.

  9. linghengqian commented on Oct 23, 2026

    @linghengqian
    Author

    So?

  10. williammartin commented on Oct 23, 2026

    @williammartin
    Member

    @linghengqian is #14796 sufficient?

  11. linghengqian commented on Oct 23, 2026

    @linghengqian
    Author

    16. @linghengqian is #14796 sufficient?

    I think #14796 could definitely be marked as Fixes #14256. This is the simplest installation method, and extrepo is even documented in the Debian wiki.👍

  12. changed the title [-]Add installation via PPA[/-] [+]Add `extrepo` as an unofficial installation method[/+] on Oct 23, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancementa request to improve CLI

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions