Score:-1

How uninstall GitHub CLI in ubuntu 20.04

cn flag

i installed GitHub CLI like written here https://www.techiediaries.com/install-github-cli-ubuntu-20/ :

install

sudo apt-key adv --keyserver keyserver.ubuntu.com --recv-key C99B11DEB97541F0
sudo apt-add-repository https://cli.github.com/packages
sudo apt update
sudo apt install gh

uninstall

i read howto uninstall it other systems here:

https://github.com/cli/cli

for example spack uninstall gh

and tried with this error:

sudo apt uninstall gh
E: Invalid operation uninstall

how to fix it?

us flag
How did you install it? Please edit the question to add that information.
waltinator avatar
it flag
Read `man apt`.
SL5net avatar
cn flag
@waltinator `sudo apt remove gh` works
Score:1
cn flag

as @waltinator said above, this works:

sudo apt remove gh works

Score:0
us flag

You could also use nala, and simply type:

sudo nala remove gh
mangohost

Post an answer

Most people don’t grasp that asking a lot of questions unlocks learning and improves interpersonal bonding. In Alison’s studies, for example, though people could accurately recall how many questions had been asked in their conversations, they didn’t intuit the link between questions and liking. Across four studies, in which participants were engaged in conversations themselves or read transcripts of others’ conversations, people tended not to realize that question asking would influence—or had influenced—the level of amity between the conversationalists.