🌐
GNU
gcc.gnu.org › releases.html
GCC Releases - GNU Project
April 30, 2026 - GCC releases may be downloaded from our mirror sites. Important: these are source releases, so will be of little use if you do not already have a C++ compiler installed. As one option, there are pre-compiled binaries. for various platforms. You can also retrieve our sources using Git. The table is sorted by date...
🌐
GNU
gcc.gnu.org › gcc-11
GCC 11 Release Series - GNU Project
July 19, 2024 - The GCC developers are pleased to announce the release of GCC 11.5.
🌐
LinuxReviews
linuxreviews.org › GCC_11_Will_Be_Set_In_Stone_On_November_15th
GCC 11 Will Be Set In Stone On November 15th - LinuxReviews
The long bug-fixing cycle following GCC's feature-freeze is typical five to six months long. That places the final GCC 11 release around April/May 2021.
optimizing compiler produced by the GNU Project, key component of the GNU tool-chain and standard compiler for most projects related to GNU and the Linux kernel.
GCC_10.2_GNU_Compiler_Collection_self-compilation.png
gcc 11 1 0 compiling chicken screenshot
The GNU Compiler Collection (GCC; formerly GNU C Compiler) is a collection of compilers from the GNU Project that support various programming languages, hardware architectures, and operating systems. The Free Software Foundation … Wikipedia
Factsheet
Original author Richard Stallman
Developer GNU Project
Release March 22, 1987; 39 years ago (1987-03-22)
Factsheet
Original author Richard Stallman
Developer GNU Project
Release March 22, 1987; 39 years ago (1987-03-22)
🌐
GNU
gcc.gnu.org › gcc-11 › changes.html
GCC 11 Release Series — Changes, New Features, and Fixes - GNU Project
This is the list of problem reports (PRs) from GCC's bug tracking system that are known to be fixed in the 11.1 release.
🌐
Wikidata
wikidata.org › wiki › Q178940
GNU Compiler Collection - Wikidata
GCC 11.4 Released (English) author · Jakub Jelínek · language of work or name · English · publication date · 29 May 2023 · retrieved · 29 May 2023 · 13.2 · version type · stable version · publication date · 27 July 2023 · download ...
🌐
Sourceware
inbox.sourceware.org › gcc › s236snr5-n49-r7r2-q949-82ssr3qqpn78@fhfr.qr
GCC 11.3 Released - Richard Biener - public-inbox
From: Richard Biener <rguenther@suse.de> To: gcc-announce@gcc.gnu.org, gcc@gcc.gnu.org, info-gnu@gnu.org Subject: GCC 11.3 Released Date: Thu, 21 Apr 2022 11:12:46 +0200 (CEST) [thread overview] Message-ID: <s236snr5-n49-r7r2-q949-82ssr3qqpn78@fhfr.qr> (raw) The GNU Compiler Collection version ...
🌐
GitHub
github.com › iains › gcc-11-branch
GitHub - iains/gcc-11-branch: GCC 11 for Darwin with experimental Arm64 support. Current release 11.5-darwin-r0 [July 2024] · GitHub
GCC 11 for Darwin with experimental Arm64 support. Current release 11.5-darwin-r0 [July 2024] - iains/gcc-11-branch
Starred by 2 users
Forked by 2 users
Find elsewhere
🌐
SUSE
documentation.suse.com › sbp › devel-tools › html › SBP-GCC-11 › index.html
Advanced Optimization and New Capabilities of GCC 11 | SUSE Linux Enterprise Server 15 SP3
March 14, 2022 - The first release of the GNU Compiler Collection (GCC) with the major version 11, GCC 11.1, took place in March 2021. In late May of the same year, the entire openSUSE Tumbleweed Linux distribution was rebuilt with it and shipped to users.
🌐
GNU
lists.gnu.org › archive › html › info-gnu › 2024-07 › msg00011.html
GCC 11.5 Released
July 19, 2024 - [Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] The GNU Compiler Collection version 11.5 has been released. GCC 11.5 is a bug-fix release from the GCC 11 branch containing important fixes for regressions and serious bugs in GCC 11.4 with more than 157 bugs fixed since the previous release.
🌐
Wide
ftp.tsukuba.wide.ad.jp › software › gcc › releases
Index of /software/gcc/releases/
Index of /software/gcc/releases/ · Tsukuba WIDE public mirror service
🌐
GNU
gcc.gnu.org › develop.html
GCC Development Plan - GNU Project
April 30, 2026 - | +-- GCC 3.0 branch created ------+ ... ------+ | \ | v v GCC 3.1 release (May 15 2002) GCC 3.2 Stage 1 (ended Jun 22 2002) \ | v | GCC 3.1.1 release (Jul 25 2002) | \ v v New development plan announced Bran...
🌐
GNU Project
gnu.ist.utl.pt › software › gcc › releases.html
GCC Releases - GNU Project - Free Software Foundation (FSF)
Source code for GCC releases may be downloaded from our mirror sites. Important: because these are source releases, they will be of little use to you if you do not already have a C compiler on your machine. If you don't already have a compiler, you need pre-compiled binaries. Our binaries page has references to pre-compiled binaries for various platforms. You can also retrieve the current development sources using SVN. The table is sorted by date...
🌐
LinuxReviews
linuxreviews.org › GCC_11.1_Is_Released
GCC 11.1 Is Released - LinuxReviews
April 28, 2021 - GCC compiling a simple "hello world" program. The GNU Compiler Collection 11.1 release is not, as the version number would imply, a bug-fix release for GCC 11. There was no GCC 11.0, there never are any .0 GCC releases.
🌐
GNU
gcc.gnu.org › gcc-11 › criteria.html
GCC 11 Release Criteria - GNU Project
The GCC team (and, in particular, the Release Managers) will attempt to meet these criteria before the release of GCC 11.
🌐
GNU
gcc.gnu.org › pipermail › gcc › 2021-April › 235922.html
GCC 11.1 Released - GCC, the GNU Compiler Collection
April 27, 2021 - The GCC developers are proud to announce another major GCC release, 11.1. This release switches the default debugging format to DWARF 5 [1] on most targets and switches the default C++ language version to -std=gnu++17.
🌐
Phoronix
phoronix.com › news › GCC-11.3-Released
GCC 11.3 Released With Nearly 200 Bug Fixes - Phoronix
April 21, 2022 - While GCC 12 (GCC 12.1 stable) will be out in the coming weeks, GCC 11.3 is out today as the latest stable release in the current GCC 11 series.
🌐
The Fedora Project
fedoraproject.org › wiki › Changes › GNUToolchainF35
Changes/GNUToolchainF35 - Fedora Project Wiki
The latest point release for gcc 11 will be included in Fedora 35, this will be either 11.1 (already released in April) or 11.2 (released later).
Top answer
1 of 4
71
sudo apt install build-essential manpages-dev software-properties-common
sudo add-apt-repository ppa:ubuntu-toolchain-r/test
sudo apt update && sudo apt install gcc-11 g++-11

Then use update-alternatives to set default gcc...

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 --slave /usr/bin/gcc-ar gcc-ar /usr/bin/gcc-ar-9 --slave /usr/bin/gcc-ranlib gcc-ranlib /usr/bin/gcc-ranlib-9  --slave /usr/bin/cpp cpp /usr/bin/cpp-9 && \

sudo update-alternatives --install /usr/bin/gcc gcc /usr/bin/gcc-11 110 --slave /usr/bin/g++ g++ /usr/bin/g++-11 --slave /usr/bin/gcov gcov /usr/bin/gcov-11 --slave /usr/bin/gcc-ar gcc-ar /usr/bin/gcc-ar-11 --slave /usr/bin/gcc-ranlib gcc-ranlib /usr/bin/gcc-ranlib-11  --slave /usr/bin/cpp cpp /usr/bin/cpp-11;

To sample check settings to see which gcc is default you can run the following, if they show correct resuslts then the rest are fine...

gcc --version;g++ --version;gcov --version;

To reconfigure to any previous gcc version...

sudo update-alternatives --config gcc

You can do this on any version of ubuntu,... enjoy!

Here are my 6 different gcc's living side by side with the default being gcc-11:

$ sudo update-alternatives --config gcc
There are 6 choices for the alternative gcc (providing /usr/bin/gcc).

  Selection    Path             Priority   Status
------------------------------------------------------------
* 0            /usr/bin/gcc-11   1010      auto mode
  1            /usr/bin/gcc-10   1000      manual mode
  2            /usr/bin/gcc-11   1010      manual mode
  3            /usr/bin/gcc-5    40        manual mode
  4            /usr/bin/gcc-7    700       manual mode
  5            /usr/bin/gcc-8    800       manual mode
  6            /usr/bin/gcc-9    900       manual mode

Press <enter> to keep the current choice[*], or type selection number:
2 of 4
18

On Ubuntu 20.04, I followed the instructions here:

  • https://packages.ubuntu.com/hirsute/amd64/gcc-11-multilib/download

Which is to:

  1. Update the listed mirrors by adding a line to your /etc/apt/sources.list like this:

    sudo add-apt-repository 'deb http://mirrors.kernel.org/ubuntu hirsute main universe'

    Choose a mirror based on your location from the list. I chose the kernel mirror as I am in North America.

  2. sudo apt-get update

  3. sudo apt-get install gcc-11

After that which gcc-11 should produce a path to gcc-11. On my machine it was:

which gcc-11

produces: /usr/bin/gcc-11