AnswerBun.com

How to go back to default GCC version of Ubuntu 18.04?

Ask Ubuntu Asked on November 28, 2020

$ gcc --version
gcc (Ubuntu 10.1.0-2ubuntu1~18.04) 10.1.0


$ type -a gcc
gcc is /usr/bin/gcc


$ update-alternatives --query gcc
Name: gcc
Link: /usr/bin/gcc
Slaves:
 g++ /usr/bin/g++
Status: auto
Best: /usr/bin/gcc-10
Value: /usr/bin/gcc-10

Alternative: /usr/bin/gcc-10
Priority: 60
Slaves:
 g++ /usr/bin/g++-10

I don’t exactly remember what steps I followed to get to this version.

I want to uninstall the new gcc and have just the old one back.
Please help me to revert back to default version on Ubuntu 18.04.

Add your own answers!

Related Questions

Can’t Configure Chrome Remote Desktop

3  Asked on January 5, 2022 by jswien

   

uvcvideo is loaded but /dev/video0 doesn’t exist

1  Asked on January 5, 2022 by vahidreza

       

Purge and Reinstall Kernel and Wireguard

3  Asked on January 5, 2022 by databoy2k

   

¿How to save a session in CARLA?

0  Asked on January 5, 2022 by artefectum

 

How Do I Migrate a Chromium Snap Between Machines?

1  Asked on January 5, 2022 by commonsware

   

How do I update the BIOS of a Dell laptop?

12  Asked on January 3, 2022 by gunjan-parashar

   

Why ISO master (editor) does not read Windows images

3  Asked on January 3, 2022 by jacek-blocki

   

Webserver not displaying PHP page

2  Asked on January 3, 2022 by qubex

     

What’s the difference between .bashrc and /etc/bash.bashrc?

2  Asked on January 3, 2022 by iliyas-mansons

   

Radeon VII and Ubuntu problems

3  Asked on January 3, 2022 by icytux

     

Ask a Question

Get help from others!

© 2022 AnswerBun.com. All rights reserved. Sites we Love: PCI Database, MenuIva, UKBizDB, Menu Kuliner, Sharing RPP, SolveDir