How Do I Change Gcc Version in Linux?
Contents

How do I downgrade gcc version?

2 Answers

  1. Uninstall gcc5.4. sudo apt-get remove gcc g++ Check gcc again: gcc –version.
  2. Install gcc 4.9/g++ 4.9. sudo apt-get install gcc-4.9 g++-4.9. Checking Version: g++-4.9 –version.
  3. Link to gcc g++ ln -s /usr/bin/g++-4.9 /usr/bin/g++ ln -s /usr/bin/gcc-4.9 /usr/bin/gcc.
  4. Checking Version: g++ –v gcc –v.

How do I update gcc to latest version?

Update using the GUI version:

  1. When the GUI is open, tap Installation -> Update Catalogue . This will update the package list.
  2. After that, tap Installation -> Mark All Upgrades . This will select all of the packages which can be upgraded.
  3. Finally, tap Installation -> Apply Changes to apply the upgrades.
Chloe Bennett

Chloe Bennett

Culture, Media & Entertainment Columnist

Chloe Bennett explores the intersection of pop culture, streaming entertainment, digital trends, and contemporary lifestyle. Her weekly commentary reaches thousands of culture enthusiasts.

Share this article
Twitter Facebook Pinterest