Score:1

How to undo command in terminal?

lu flag

Command:

sudo apt install software-properties-common
    sudo add-apt-repository ppa:ubuntu-toolchain-r/test
    sudo apt-get update
    sudo apt install gcc-9 g++-9
    sudo update-alternatives --install /usr/bin/gcc gcc /usr/bin/gcc-9 90 --slave /usr/bin/g++ g++ /usr/bin/g++-9 --slave /usr/bin/gcov gcov /usr/bin/gcov-9

Now my gcc version is 9.5 (11 was before)

How i can delete these update-alternative and give back my gcc 11??

Score:1
pl flag

As an alternative to manually removing packages and the PPA, there's a more automated way of doing it with ppa-purge. In your case you'd run:

sudo ppa-purge -o ubuntu-toolchain -p test

The following format also works

sudo ppa-purge ppa:ubuntu-toolchain-r/test

From the documentation:

ppa-purge will reset all packages from a PPA to the standard
versions released for your distribution.
I sit in a Tesla and translated this thread with Ai:

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.