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

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

## Install

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

Additional install commands:

### macOS

- Homebrew (100%):

```sh
brew install gcc@10
```

  Evidence: local Homebrew formula metadata

- MacPorts (94%):

```sh
sudo port install gcc10
```

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

### Linux

- Ubuntu apt (92%):

```sh
sudo apt install cpp-10
```

  Evidence: Ubuntu 24.04 LTS package indexes: cpp-10 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@10
- **Package manager:** Homebrew
- **Package manager page:** <https://formulae.brew.sh/formula/gcc@10>
- **Version:** 10.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-10.5.0/gcc-10.5.0.tar.xz>
- **Last updated:** 2026-07-03T16:36:59-04:00
- **Generated:** 2026-07-08T18:08:21+00:00

## Executables

- c++-10 (cli)
- cpp-10 (cli)
- gcc-10 (cli)
- gcc-ar-10 (cli)
- gcc-nm-10 (cli)
- gcc-ranlib-10 (cli)
- gcov-10 (cli)
- gcov-dump-10 (cli)
- gcov-tool-10 (cli)
- gfortran-10 (cli)
- lto-dump-10 (cli)
- c++-10 (alias)
- cpp-10 (alias)
- gcc-10 (alias)
- gcc-ar-10 (alias)
- gcc-nm-10 (alias)
- gcc-ranlib-10 (alias)
- gcov-10 (alias)
- gcov-dump-10 (alias)
- gcov-tool-10 (alias)
- gfortran-10 (alias)
- lto-dump-10 (alias)

## Dependencies

- gmp
- isl
- libmpc
- mpfr

## Install behavior

- Post-install hook: defined
- Bottle: available on arm64_linux, big_sur, monterey, ventura, x86_64_linux

## Freshness

- Page generated: 2026-07-08
- Package-manager version: 10.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 10 is the Homebrew versioned packaging line for the GCC 10 release series. It belongs to the same GNU Compiler Collection history as GCC generally, but packages the older major series for builds that need that compiler generation rather than the current default.

### Project history

The official GCC timeline lists GCC 10.1 on May 7, 2020, followed by 10.2 in July 2020, 10.3 in April 2021, 10.4 in June 2022, and 10.5 in July 2023. The GCC 10 change notes describe a large release-series update with new options, link-time optimization changes, an experimental static analysis pass through -fanalyzer, and C++/libstdc++ caveats.

### Adoption history

Versioned GCC packages exist because package managers often need to let users pin an older compiler major while the default formula advances. GCC 10 remained relevant after newer GCC releases because C and C++ projects, Fortran builds, scientific software, and ABI-sensitive dependency chains may need a known compiler series for reproducibility.

### How it is used

Homebrew exposes GCC 10 with version-suffixed executables such as gcc-10, g++-10, cpp-10, gfortran-10, gcov-10, and lto-dump-10. The upstream Git documentation maps this to release branches such as releases/gcc-10 and release tags of the form releases/gcc-X.Y.0.

### Why package nerds care

gcc@10 is significant because it is a compatibility compiler package. It lets package recipes and users keep using a post-GCC-9 but pre-GCC-11 toolchain, including the GCC 10 C++ and libstdc++ behavior, while the main gcc package tracks later majors.

### Timeline

- 1987: GCC 1.0 released.
- 2020: GCC 10.1 released.
- 2020: GCC 10.2 released.
- 2021: GCC 10.3 released.
- 2022: GCC 10.4 released.
- 2023: GCC 10.5 released.

### Related projects

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

### Sources

- <https://gcc.gnu.org/gcc-10/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@10. 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@10
- **Version Scheme:** 0
- **Revision:** 0
- **Requirements:** arch, maximum_macos
- **Bottle Stable Root URL:** <https://ghcr.io/v2/homebrew/core>
- **Deprecated:** yes
- **Disabled:** no
- **Keg Only:** no
- **URL Keys:** stable

## Other Package-Manager Records

- Ubuntu apt - cpp-10 - 10.5.0-4ubuntu2: normalized package name match | Ubuntu 24.04 LTS package indexes: cpp-10 from https://archive.ubuntu.com/ubuntu/dists/noble/universe/binary-amd64/Packages.gz | GNU C preprocessor | http://gcc.gnu.org/
- Ubuntu apt - cpp-10-doc - 10.5.0-4ubuntu2: normalized package name match | Ubuntu 24.04 LTS package indexes: cpp-10-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++-10 - 10.5.0-4ubuntu2: normalized package name match | Ubuntu 24.04 LTS package indexes: g++-10 from https://archive.ubuntu.com/ubuntu/dists/noble/universe/binary-amd64/Packages.gz | GNU C++ compiler | http://gcc.gnu.org/
- Ubuntu apt - g++-10-multilib - 10.5.0-4ubuntu2: normalized package name match | Ubuntu 24.04 LTS package indexes: g++-10-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-10 - 10.5.0-4ubuntu2: normalized package name match | Ubuntu 24.04 LTS package indexes: gcc-10 from https://archive.ubuntu.com/ubuntu/dists/noble/universe/binary-amd64/Packages.gz | GNU C compiler | http://gcc.gnu.org/
- Ubuntu apt - gcc-10-base - 10.5.0-4ubuntu2: normalized package name match | Ubuntu 24.04 LTS package indexes: gcc-10-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-10-doc - 10.5.0-4ubuntu2: normalized package name match | Ubuntu 24.04 LTS package indexes: gcc-10-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-10-hppa64-linux-gnu - 10.5.0-4ubuntu2: normalized package name match | Ubuntu 24.04 LTS package indexes: gcc-10-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-10-locales - 10.5.0-4ubuntu2: normalized package name match | Ubuntu 24.04 LTS package indexes: gcc-10-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-10-multilib - 10.5.0-4ubuntu2: normalized package name match | Ubuntu 24.04 LTS package indexes: gcc-10-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-10-offload-nvptx - 10.5.0-4ubuntu2: normalized package name match | Ubuntu 24.04 LTS package indexes: gcc-10-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-10-plugin-dev - 10.5.0-4ubuntu2: normalized package name match | Ubuntu 24.04 LTS package indexes: gcc-10-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-10-source - 10.5.0-4ubuntu2: normalized package name match | Ubuntu 24.04 LTS package indexes: gcc-10-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-10-test-results - 10.5.0-4ubuntu2: normalized package name match | Ubuntu 24.04 LTS package indexes: gcc-10-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-10 - 10.5.0-4ubuntu2: normalized package name match | Ubuntu 24.04 LTS package indexes: gccbrig-10 from https://archive.ubuntu.com/ubuntu/dists/noble/universe/binary-amd64/Packages.gz | GNU BRIG (HSA IL) frontend | http://gcc.gnu.org/
- Ubuntu apt - gccgo-10 - 10.5.0-4ubuntu2: normalized package name match | Ubuntu 24.04 LTS package indexes: gccgo-10 from https://archive.ubuntu.com/ubuntu/dists/noble/universe/binary-amd64/Packages.gz | GNU Go compiler | 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.
- [gcc](https://www.automicvault.com/pkg/brew/gcc/) - Package name indicates the same formula family.
- [gcc@11](https://www.automicvault.com/pkg/brew/gcc-11/) - 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@10.yml](https://github.com/automic-vault/db/blob/main/combined/gcc@10.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
