# Install gcc@11 with Homebrew, apt, MacPorts, apk, dnf, Nix, pacman, scoop, zypper

GNU compiler collection. Version 11.5.0 via Homebrew; verified 2026-07-03.

## Install

```sh
sudo av install brew:gcc@11
```

Additional install commands:

### macOS

- Homebrew (100%):

```sh
brew install gcc@11
```

  Evidence: local Homebrew formula metadata

- MacPorts (94%):

```sh
sudo port install gcc11
```

  Evidence: MacPorts ports tree: lang/gcc11/Portfile from https://api.github.com/repos/macports/macports-ports/git/trees/master?recursive=1

### Linux

- Ubuntu apt (92%):

```sh
sudo apt install cpp-11
```

  Evidence: Ubuntu 24.04 LTS package indexes: cpp-11 from https://archive.ubuntu.com/ubuntu/dists/noble/universe/binary-amd64/Packages.gz

- apk (92%):

```sh
sudo apk add g++
```

  Evidence: Alpine Linux edge package indexes: g++ from https://dl-cdn.alpinelinux.org/alpine/edge/main/x86_64/APKINDEX.tar.gz

- Debian apt (92%):

```sh
sudo apt install gcc
```

  Evidence: Debian stable package indexes: gcc from https://deb.debian.org/debian/dists/stable/main/binary-amd64/Packages.xz

- dnf (92%):

```sh
sudo dnf install cpp
```

  Evidence: Fedora Rawhide package metadata: cpp from https://dl.fedoraproject.org/pub/fedora/linux/development/rawhide/Everything/x86_64/os/repodata/e5ca8ce900cd68f5419e1c39ae517343100b306336cbaeb70a3c153121d95094-primary.xml.zst

- Nix (92%):

```sh
nix profile install nixpkgs#gcc
```

  Evidence: nixpkgs package indexes: gcc from https://raw.githubusercontent.com/NixOS/nixpkgs/master/pkgs/top-level/all-packages.nix

- pacman (92%):

```sh
sudo pacman -S gcc
```

  Evidence: Arch Linux sync databases: gcc from https://geo.mirror.pkgbuild.com/core/os/x86_64/core.db.tar.gz

- zypper (92%):

```sh
sudo zypper install cpp
```

  Evidence: openSUSE Tumbleweed package metadata: cpp from https://download.opensuse.org/tumbleweed/repo/oss/repodata/be8d3611d25469107f32075a1697e69ec57a2b850b42348a658cc671ad5ec2b50760d02c3e59524d50da9a11d5be799bdaffba2e166e8ca8858512e3c0bd665d-primary.xml.zst

### Windows

- Scoop (92%):

```sh
scoop install main/gcc
```

  Evidence: Scoop official bucket manifest trees: bucket/gcc.json from https://api.github.com/repos/ScoopInstaller/Main/git/trees/master?recursive=1

## Package facts

- **Package key:** brew:gcc@11
- **Package manager:** Homebrew
- **Package manager page:** <https://formulae.brew.sh/formula/gcc@11>
- **Version:** 11.5.0
- **Source summary:** GNU compiler collection
- **Homepage:** <https://gcc.gnu.org/>
- **Repository:** <https://gcc.gnu.org/git/gcc.git>
- **Upstream docs:** <https://gcc.gnu.org/install>
- **License:** GPL-3.0-or-later WITH GCC-exception-3.1
- **Source archive:** <https://ftpmirror.gnu.org/gnu/gcc/gcc-11.5.0/gcc-11.5.0.tar.xz>
- **Last updated:** 2026-07-03T16:37:19-04:00
- **Generated:** 2026-07-08T18:08:21+00:00

## Executables

- aarch64-apple-darwin23-c++-11 (cli)
- aarch64-apple-darwin23-gcc-11 (cli)
- aarch64-apple-darwin23-gcc-ar-11 (cli)
- aarch64-apple-darwin23-gcc-nm-11 (cli)
- aarch64-apple-darwin23-gcc-ranlib-11 (cli)
- aarch64-apple-darwin23-gfortran-11 (cli)
- cpp-11 (cli)
- gcov-11 (cli)
- gcov-dump-11 (cli)
- gcov-tool-11 (cli)
- lto-dump-11 (cli)
- aarch64-apple-darwin23-c++-11 (alias)
- aarch64-apple-darwin23-gcc-11 (alias)
- aarch64-apple-darwin23-gcc-ar-11 (alias)
- aarch64-apple-darwin23-gcc-nm-11 (alias)
- aarch64-apple-darwin23-gcc-ranlib-11 (alias)
- aarch64-apple-darwin23-gfortran-11 (alias)
- cpp-11 (alias)
- gcov-11 (alias)
- gcov-dump-11 (alias)
- gcov-tool-11 (alias)
- lto-dump-11 (alias)

## Dependencies

- gmp
- isl
- libmpc
- mpfr
- zstd

## Install behavior

- Post-install hook: defined
- Bottle: available on arm64_linux, arm64_monterey, arm64_sonoma, arm64_ventura, monterey, sonoma, ventura, x86_64_linux

## Freshness

- Page generated: 2026-07-08
- Package-manager version: 11.5.0
- Package-manager updated: 2026-07-03
- Local data: ok
- Upstream repository: https://gcc.gnu.org/
- info: Release/tag comparison is only available for GitHub repositories.
## Project history and usage

GCC 11 is the Homebrew versioned packaging line for the GCC 11 release series. Like gcc@10, it preserves a specific GNU Compiler Collection major version for projects that need a stable compiler generation.

### Project history

The official GCC timeline lists GCC 11.1 on April 27, 2021, then 11.2 in July 2021, 11.3 in April 2022, 11.4 in May 2023, and 11.5 in July 2024. The GCC 11 change notes call out a default C++ mode change to gnu++17, new diagnostic column behavior, sanitizer improvements, DWARF 5 debug information defaults for many targets, and a C++11-capable host compiler requirement for building GCC itself.

### Adoption history

Versioned GCC 11 packages became useful as distributions and users moved past GCC 10 but still needed to pin a compiler before later GCC majors. For package managers, a versioned formula lets recipes and local builds request gcc-11, g++-11, or gfortran-11 without making the whole system follow that major.

### How it is used

The Homebrew package exposes version-suffixed tools such as cpp-11, gcov-11, lto-dump-11, and target-prefixed gcc/g++/gfortran executables. Upstream source control uses the same GCC repository with release branches such as releases/gcc-11 and release tags documented by the GCC Git page.

### Why package nerds care

gcc@11 is important as a compatibility and migration package: it carries the first GCC major where gnu++17 became the default C++ mode, while still giving packagers a pinned compiler older than the newest GCC line.

### Timeline

- 1987: GCC 1.0 released.
- 2021: GCC 11.1 released.
- 2021: GCC 11.2 released.
- 2022: GCC 11.3 released.
- 2023: GCC 11.4 released.
- 2024: GCC 11.5 released.

### Related projects

- GCC 11 is related to the main GCC project, libstdc++, binutils, gcov, LTO tooling, sanitizer runtimes, and neighboring versioned package-manager formulae such as gcc@10 and unversioned gcc.

### Sources

- <https://gcc.gnu.org/gcc-11/changes.html>
- <https://gcc.gnu.org/git.html>
- <https://gcc.gnu.org/onlinedocs/>
- <https://gcc.gnu.org/releases.html>


## Security Notes

No matching local secret-handling manifest was found for gcc@11. Nucleus package metadata is still published here so future coverage has a stable package URL.


## Source Database Details

- **Source Database:** Homebrew formula API
- **Tap:** homebrew/core
- **Full Name:** gcc@11
- **Version Scheme:** 0
- **Revision:** 0
- **Requirements:** maximum_macos
- **Bottle Stable Root URL:** <https://ghcr.io/v2/homebrew/core>
- **Deprecated:** no
- **Disabled:** no
- **Keg Only:** no
- **URL Keys:** stable

## Other Package-Manager Records

- Ubuntu apt - cpp-11 - 11.4.0-9ubuntu1: normalized package name match | Ubuntu 24.04 LTS package indexes: cpp-11 from https://archive.ubuntu.com/ubuntu/dists/noble/universe/binary-amd64/Packages.gz | GNU C preprocessor | http://gcc.gnu.org/
- Ubuntu apt - cpp-11-doc - 11.4.0-9ubuntu1: normalized package name match | Ubuntu 24.04 LTS package indexes: cpp-11-doc from https://archive.ubuntu.com/ubuntu/dists/noble/universe/binary-amd64/Packages.gz | Documentation for the GNU C preprocessor (cpp) | http://gcc.gnu.org/
- Ubuntu apt - g++-11 - 11.4.0-9ubuntu1: normalized package name match | Ubuntu 24.04 LTS package indexes: g++-11 from https://archive.ubuntu.com/ubuntu/dists/noble/universe/binary-amd64/Packages.gz | GNU C++ compiler | http://gcc.gnu.org/
- Ubuntu apt - g++-11-multilib - 11.4.0-9ubuntu1: normalized package name match | Ubuntu 24.04 LTS package indexes: g++-11-multilib from https://archive.ubuntu.com/ubuntu/dists/noble/universe/binary-amd64/Packages.gz | GNU C++ compiler (multilib support) | http://gcc.gnu.org/
- Ubuntu apt - gcc-11 - 11.4.0-9ubuntu1: normalized package name match | Ubuntu 24.04 LTS package indexes: gcc-11 from https://archive.ubuntu.com/ubuntu/dists/noble/universe/binary-amd64/Packages.gz | GNU C compiler | http://gcc.gnu.org/
- Ubuntu apt - gcc-11-base - 11.4.0-9ubuntu1: normalized package name match | Ubuntu 24.04 LTS package indexes: gcc-11-base from https://archive.ubuntu.com/ubuntu/dists/noble/universe/binary-amd64/Packages.gz | GCC, the GNU Compiler Collection (base package) | http://gcc.gnu.org/
- Ubuntu apt - gcc-11-doc - 11.4.0-9ubuntu1: normalized package name match | Ubuntu 24.04 LTS package indexes: gcc-11-doc from https://archive.ubuntu.com/ubuntu/dists/noble/universe/binary-amd64/Packages.gz | Documentation for the GNU compilers (gcc, gobjc, g++) | http://gcc.gnu.org/
- Ubuntu apt - gcc-11-hppa64-linux-gnu - 11.4.0-9ubuntu1: normalized package name match | Ubuntu 24.04 LTS package indexes: gcc-11-hppa64-linux-gnu from https://archive.ubuntu.com/ubuntu/dists/noble/universe/binary-amd64/Packages.gz | GNU C compiler (cross compiler for hppa64) | http://gcc.gnu.org/
- Ubuntu apt - gcc-11-locales - 11.4.0-9ubuntu1: normalized package name match | Ubuntu 24.04 LTS package indexes: gcc-11-locales from https://archive.ubuntu.com/ubuntu/dists/noble/universe/binary-amd64/Packages.gz | GCC, the GNU compiler collection (native language support files) | http://gcc.gnu.org/
- Ubuntu apt - gcc-11-multilib - 11.4.0-9ubuntu1: normalized package name match | Ubuntu 24.04 LTS package indexes: gcc-11-multilib from https://archive.ubuntu.com/ubuntu/dists/noble/universe/binary-amd64/Packages.gz | GNU C compiler (multilib support) | http://gcc.gnu.org/
- Ubuntu apt - gcc-11-offload-amdgcn - 11.4.0-9ubuntu1: normalized package name match | Ubuntu 24.04 LTS package indexes: gcc-11-offload-amdgcn from https://archive.ubuntu.com/ubuntu/dists/noble/universe/binary-amd64/Packages.gz | GCC offloading compiler to GCN | http://gcc.gnu.org/
- Ubuntu apt - gcc-11-offload-nvptx - 11.4.0-9ubuntu1: normalized package name match | Ubuntu 24.04 LTS package indexes: gcc-11-offload-nvptx from https://archive.ubuntu.com/ubuntu/dists/noble/universe/binary-amd64/Packages.gz | GCC offloading compiler to NVPTX | http://gcc.gnu.org/
- Ubuntu apt - gcc-11-plugin-dev - 11.4.0-9ubuntu1: normalized package name match | Ubuntu 24.04 LTS package indexes: gcc-11-plugin-dev from https://archive.ubuntu.com/ubuntu/dists/noble/universe/binary-amd64/Packages.gz | Files for GNU GCC plugin development. | http://gcc.gnu.org/
- Ubuntu apt - gcc-11-source - 11.4.0-9ubuntu1: normalized package name match | Ubuntu 24.04 LTS package indexes: gcc-11-source from https://archive.ubuntu.com/ubuntu/dists/noble/universe/binary-amd64/Packages.gz | Source of the GNU Compiler Collection | http://gcc.gnu.org/
- Ubuntu apt - gcc-11-test-results - 11.4.0-9ubuntu1: normalized package name match | Ubuntu 24.04 LTS package indexes: gcc-11-test-results from https://archive.ubuntu.com/ubuntu/dists/noble/universe/binary-amd64/Packages.gz | Test results for the GCC test suite | http://gcc.gnu.org/
- Ubuntu apt - gccbrig-11 - 11.4.0-9ubuntu1: normalized package name match | Ubuntu 24.04 LTS package indexes: gccbrig-11 from https://archive.ubuntu.com/ubuntu/dists/noble/universe/binary-amd64/Packages.gz | GNU BRIG (HSA IL) frontend | http://gcc.gnu.org/


## Related links

- [Developer build packages](https://www.automicvault.com/pkg/developer-build-tools/) - Matched build, compiler, generator, or developer workflow metadata.
- [Language runtime packages](https://www.automicvault.com/pkg/language-runtime-packages/) - Matched language runtime, compiler, or interpreter metadata.
- [Networking and protocol packages](https://www.automicvault.com/pkg/networking-protocol-tools/) - Matched network, protocol, or remote-service metadata.
- [Archive and compression packages](https://www.automicvault.com/pkg/archive-compression-tools/) - Matched curated package taxonomy and local package facts.
- [zstd](https://www.automicvault.com/pkg/brew/zstd/) - Runtime dependency declared by Homebrew.
- [gcc](https://www.automicvault.com/pkg/brew/gcc/) - Package name indicates the same formula family.
- [gcc@10](https://www.automicvault.com/pkg/brew/gcc-10/) - Package name indicates the same formula family.
- [gcc@12](https://www.automicvault.com/pkg/brew/gcc-12/) - Package name indicates the same formula family.
- [gcc@13](https://www.automicvault.com/pkg/brew/gcc-13/) - Package name indicates the same formula family.
- [gcc@14](https://www.automicvault.com/pkg/brew/gcc-14/) - Package name indicates the same formula family.
- [gcc@15](https://www.automicvault.com/pkg/brew/gcc-15/) - Package name indicates the same formula family.
- [gcc@9](https://www.automicvault.com/pkg/brew/gcc-9/) - Package name indicates the same formula family.

## Combined YAML source

View the package source record on GitHub. [combined/gcc@11.yml](https://github.com/automic-vault/db/blob/main/combined/gcc@11.yml)


## Sources

- Nucleus package database
- package-page enrichment
- curated package history
- package version freshness
- package relationship graph
- external package-manager database matches
- cross-ecosystem install command graph
