How to Switch GCC Version on Ubuntu 20.04

August 7, 2020 | By the+gnu+linux+evangelist | Filed in: Tutorial.

GNU/Linux Ubuntu 20.04 Switching GCC Version Guide

Hi! The Tutorial Shows You Step-by-step How to Manage GCC Versions in Ubuntu 20.04 Focal LTS GNU/Linux.

And to Switch GCC on Ubuntu 20.04 I make use of the useful update-alternatives Command Line Tool.

Finally, the GCC is a Compilers Collection currently supporting C, C++, Objective-C, Objective-C++, Fortran, Ada, D, Go, and BRIG (HSAIL) Languages.

How to Switch GCC Version on Ubuntu 20.04 - Featured
  1. 1. Terminal Getting-Started Guide

    How-to Quick-Start with Command Line on Ubuntu GNU/Linux

    Command Line Ubuntu Linux QuickStart Guide
  2. 2. Querying for GCC

    First, if needed Look up available GCCs
    First, find out what the GCC in use:

    which gcc
    Next to check for others available GCC Releases use the grep Command:
    ls -l /usr/bin | grep gcc
    And in case of a GCC Source installation also:
    ls -l /usr/local/bin | grep gcc
    The grep Command refine the output List showing only the Entries matching the Keyword.

Tags: , , , , , , ,

QuickChic Theme • Powered by WordPress