# gcc を Homebrew, apk, apt, dnf, Nix, pacman, zypper, scoop でインストール

gcc のインストール経路、実行ファイル、メタデータ、AI エージェント向けセキュリティノートを確認します。

## インストール

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

追加のインストールコマンド:

### macOS

- Homebrew (100%):

```sh
brew install gcc
```

  証拠: local Homebrew formula metadata

### Linux

- apk (92%):

```sh
sudo apk add gcc
```

  証拠: Alpine Linux edge package indexes: gcc from https://dl-cdn.alpinelinux.org/alpine/edge/main/x86_64/APKINDEX.tar.gz

- Debian apt (92%):

```sh
sudo apt install gcc
```

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

- dnf (92%):

```sh
sudo dnf install gcc
```

  証拠: Fedora Rawhide package metadata: gcc from https://dl.fedoraproject.org/pub/fedora/linux/development/rawhide/Everything/x86_64/os/repodata/210a2053c8e007daf9ae39c2a21daaed9b2ddd07d63ecffa597050361e73650c-primary.xml.zst

- Nix (92%):

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

  証拠: 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
```

  証拠: 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 gcc
```

  証拠: openSUSE Tumbleweed package metadata: gcc from https://download.opensuse.org/tumbleweed/repo/oss/repodata/50b07339cb64c8ed4091bdbabddadc1ff5737b090e478818a195b40d8a3292861a879139b4a3987c31109699fde9fbf4a716367ddf4eef77da75f96e3193d6ed-primary.xml.zst

### Windows

- Scoop (92%):

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

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

## パッケージ情報

- **パッケージキー:** brew:gcc
- **パッケージマネージャ:** Homebrew
- **パッケージマネージャページ:** <https://formulae.brew.sh/formula/gcc>
- **バージョン:** 16.1.0
- **ソース概要:** GNU compiler collection
- **ホームページ:** <https://gcc.gnu.org/>
- **上流ドキュメント:** <https://gcc.gnu.org/>
- **ライセンス:** GPL-3.0-or-later WITH GCC-exception-3.1
- **ソースアーカイブ:** <https://ftpmirror.gnu.org/gnu/gcc/gcc-16.1.0/gcc-16.1.0.tar.xz>
- **最終更新:** 2026-08-01T16:37:40-04:00
- **生成日時:** 2026-08-04T22:13:35+00:00

## 実行可能ファイル

- aarch64-unknown-linux-gnu-c++-16 (cli)
- aarch64-unknown-linux-gnu-g++-16 (cli)
- aarch64-unknown-linux-gnu-gcc-16 (cli)
- aarch64-unknown-linux-gnu-gcc-ar-16 (cli)
- aarch64-unknown-linux-gnu-gcc-nm-16 (cli)
- aarch64-unknown-linux-gnu-gcc-ranlib-16 (cli)
- aarch64-unknown-linux-gnu-gfortran-16 (cli)
- aarch64-unknown-linux-gnu-gm2-16 (cli)
- c++-16 (cli)
- cpp-16 (cli)
- g++-16 (cli)
- gcc-16 (cli)
- gcc-ar-16 (cli)
- gcc-nm-16 (cli)
- gcc-ranlib-16 (cli)
- gcov-16 (cli)
- gcov-dump-16 (cli)
- gcov-tool-16 (cli)
- gfortran (cli)
- gfortran-16 (cli)
- gm2 (cli)
- gm2-16 (cli)
- lto-dump-16 (cli)
- aarch64-unknown-linux-gnu-c++-16 (エイリアス)
- aarch64-unknown-linux-gnu-g++-16 (エイリアス)
- aarch64-unknown-linux-gnu-gcc-16 (エイリアス)
- aarch64-unknown-linux-gnu-gcc-ar-16 (エイリアス)
- aarch64-unknown-linux-gnu-gcc-nm-16 (エイリアス)
- aarch64-unknown-linux-gnu-gcc-ranlib-16 (エイリアス)
- aarch64-unknown-linux-gnu-gfortran-16 (エイリアス)
- aarch64-unknown-linux-gnu-gm2-16 (エイリアス)
- c++-16 (エイリアス)
- cpp-16 (エイリアス)
- g++-16 (エイリアス)
- gcc-16 (エイリアス)
- gcc-ar-16 (エイリアス)
- gcc-nm-16 (エイリアス)
- gcc-ranlib-16 (エイリアス)
- gcov-16 (エイリアス)
- gcov-dump-16 (エイリアス)
- gcov-tool-16 (エイリアス)
- gfortran (エイリアス)
- gfortran-16 (エイリアス)
- gm2 (エイリアス)
- gm2-16 (エイリアス)
- lto-dump-16 (エイリアス)

## 依存関係

- gmp
- isl
- libmpc
- mpfr
- zstd

## ビルド依存関係

- make

## インストール挙動

- post-install フック: 未定義
- Bottle: 利用可能 対象 arm64_linux, arm64_sequoia, arm64_sonoma, arm64_tahoe, sequoia, sonoma, tahoe, x86_64_linux

## バージョンと鮮度

- ページ生成日: 2026-08-04
- マネージャ版: 16.1.0
- マネージャ更新日: 2026-08-01
- ローカルデータ: OK
- 上流リポジトリ: https://gcc.gnu.org/
- 情報: Release/tag comparison is only available for GitHub repositories.
## プロジェクトの歴史と使われ方

GCC, the GNU Compiler Collection, is the GNU project's long-running compiler suite and one of the central packages in free-software toolchains. It is both a user-facing compiler driver family and a distribution-building dependency for C, C++, Fortran, Objective-C, Ada, Go-related runtime pieces, and other GCC-supported languages and targets.

### プロジェクトの歴史

The official release timeline lists GCC 0.9 as the first beta release in March 1987 and GCC 1.0 in May 1987. The project later absorbed the EGCS line: the timeline records EGCS 1.0 in December 1997, EGCS 1.1.x through March 1999, and GCC 2.95 in July 1999, the release family generally associated with the reunited GCC project.

### 採用の歴史

The GCC mission statement frames the project as part of GNU and explicitly targets the GNU system, GNU/Linux, multiple architectures, and diverse platforms. This open-development and multi-target mission is why GCC became a default compiler in many Unix-like operating systems and remains a package-manager anchor: large parts of a distribution are either built by it, bootstrap it, or carry compatibility logic for it.

### 使われ方

Package users normally invoke compiler drivers such as gcc, g++, cpp, gfortran, gcov, and lto-dump, while packagers care about release branches, source tarballs, bootstrapping requirements, generated files in Git checkouts, and runtime-library licensing. The official Git page documents cloning from https://gcc.gnu.org/git/gcc.git, release branches under releases/gcc-N, and release tags such as releases/gcc-X.Y.0.

### パッケージ好きにとっての重要性

GCC is package-manager infrastructure, not just another package. It drives ABI compatibility, bootstrap chains, language standard defaults, libstdc++ behavior, cross-compilation targets, build flags, sanitizer support, and the difference between a distribution that can rebuild itself and one that cannot.

### タイムライン

- 1987: GCC 0.9 first beta release.
- 1987: GCC 1.0 released.
- 1997: EGCS 1.0 released as a parallel compiler line.
- 1999: GCC 2.95 released after the EGCS era.
- 2001: GCC 3.0 released.
- 2005: GCC 4.0.0 released.
- 2015: GCC 5.1 released under the modern major-version release scheme.
- 2025: GCC 15.1 released.
- 2026: GCC 16.1 released.

### Related projects

- GCC is tied to the GNU Project, GNU/Linux distributions, libstdc++, binutils, GDB, the GNU build toolchain, and competing or complementary compilers such as Clang/LLVM. Its own official Git documentation also treats release branches and tags as first-class package artifacts.

### ソース

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


## セキュリティノート

compiler and toolchain runtime.

- **Geiger リスク:** yellow / 高
- compiler and toolchain runtime

## ソースデータベース詳細

- **Source Database:** Homebrew formula API
- **Tap:** homebrew/core
- **Full Name:** gcc
- **Aliases:** gcc@16, gfortran
- **Version Scheme:** 0
- **Revision:** 0
- **Head Version:** HEAD
- **Bottle Stable Root URL:** <https://ghcr.io/v2/homebrew/core>
- **Deprecated:** no
- **Disabled:** no
- **Keg Only:** no
- **URL Keys:** head, stable

## 他のパッケージマネージャ記録

- Debian apt - gcc - 4:14.2.0-1: normalized package name match | Debian stable package indexes: gcc from https://deb.debian.org/debian/dists/stable/main/binary-amd64/Packages.xz | GNU C compiler
- Nix - gcc: normalized package name match | nixpkgs package indexes: gcc from https://raw.githubusercontent.com/NixOS/nixpkgs/master/pkgs/top-level/all-packages.nix
- Ubuntu apt - gcc - 4:13.2.0-7ubuntu1: normalized package name match | Ubuntu 24.04 LTS package indexes: gcc from https://archive.ubuntu.com/ubuntu/dists/noble/main/binary-amd64/Packages.gz | GNU C compiler
- apk - g++ - 15.2.0-r8: normalized package name match | Alpine Linux edge package indexes: g++ from https://dl-cdn.alpinelinux.org/alpine/edge/main/x86_64/APKINDEX.tar.gz | GNU C++ standard library and compiler | https://gcc.gnu.org
- apk - gcc - 15.2.0-r8: normalized package name match | Alpine Linux edge package indexes: gcc from https://dl-cdn.alpinelinux.org/alpine/edge/main/x86_64/APKINDEX.tar.gz | The GNU Compiler Collection | https://gcc.gnu.org
- apk - gcc-doc - 15.2.0-r8: normalized package name match | Alpine Linux edge package indexes: gcc-doc from https://dl-cdn.alpinelinux.org/alpine/edge/main/x86_64/APKINDEX.tar.gz | The GNU Compiler Collection (documentation) | https://gcc.gnu.org
- apk - gcc-gdb - 15.2.0-r8: normalized package name match | Alpine Linux edge package indexes: gcc-gdb from https://dl-cdn.alpinelinux.org/alpine/edge/main/x86_64/APKINDEX.tar.gz | The GNU Compiler Collection (gdb printers) | https://gcc.gnu.org
- apk - gcc-gdc - 15.2.0-r8: normalized package name match | Alpine Linux edge package indexes: gcc-gdc from https://dl-cdn.alpinelinux.org/alpine/edge/main/x86_64/APKINDEX.tar.gz | GCC-based D language compiler | https://gcc.gnu.org
- apk - gcc-gnat - 15.2.0-r8: normalized package name match | Alpine Linux edge package indexes: gcc-gnat from https://dl-cdn.alpinelinux.org/alpine/edge/main/x86_64/APKINDEX.tar.gz | Ada support for GCC | https://gcc.gnu.org
- apk - gcc-go - 15.2.0-r8: normalized package name match | Alpine Linux edge package indexes: gcc-go from https://dl-cdn.alpinelinux.org/alpine/edge/main/x86_64/APKINDEX.tar.gz | GCC Go frontend (intended for bootstrapping community/go) | https://gcc.gnu.org
- apk - gcc-objc - 15.2.0-r8: normalized package name match | Alpine Linux edge package indexes: gcc-objc from https://dl-cdn.alpinelinux.org/alpine/edge/main/x86_64/APKINDEX.tar.gz | GNU Objective-C | https://gcc.gnu.org
- apk - gfortran - 15.2.0-r8: normalized package name match | Alpine Linux edge package indexes: gfortran from https://dl-cdn.alpinelinux.org/alpine/edge/main/x86_64/APKINDEX.tar.gz | GNU Fortran Compiler | https://gcc.gnu.org
- apk - libatomic - 15.2.0-r8: normalized package name match | Alpine Linux edge package indexes: libatomic from https://dl-cdn.alpinelinux.org/alpine/edge/main/x86_64/APKINDEX.tar.gz | GCC Atomic library | https://gcc.gnu.org
- apk - libgcc - 15.2.0-r8: normalized package name match | Alpine Linux edge package indexes: libgcc from https://dl-cdn.alpinelinux.org/alpine/edge/main/x86_64/APKINDEX.tar.gz | GNU C compiler runtime libraries | https://gcc.gnu.org
- apk - libgcc-static - 15.2.0-r8: normalized package name match | Alpine Linux edge package indexes: libgcc-static from https://dl-cdn.alpinelinux.org/alpine/edge/main/x86_64/APKINDEX.tar.gz | GNU C compiler runtime libraries | https://gcc.gnu.org
- apk - libgccjit - 15.2.0-r8: normalized package name match | Alpine Linux edge package indexes: libgccjit from https://dl-cdn.alpinelinux.org/alpine/edge/main/x86_64/APKINDEX.tar.gz | GCC JIT Library | https://gcc.gnu.org


## 関連リンク

- [Secret-risk packages](https://pkg.so/ja/secret-risk-packages/) - Has protected-tool coverage, approval-gate, or non-low Geiger security signals.
- [Terminal utility packages](https://pkg.so/ja/terminal-utilities/) - Matched terminal and command-line workflow metadata.
- [Developer build packages](https://pkg.so/ja/developer-build-tools/) - Matched build, compiler, generator, or developer workflow metadata.
- [Language runtime packages](https://pkg.so/ja/language-runtime-packages/) - Matched language runtime, compiler, or interpreter metadata.
- [zstd](https://pkg.so/ja/brew/zstd/) - Runtime dependency declared by Homebrew.
- [make](https://pkg.so/ja/brew/make/) - Build dependency declared by Homebrew.
- [hdf5](https://pkg.so/ja/brew/hdf5/) - Popular package that depends on this formula.
- [open-mpi](https://pkg.so/ja/brew/open-mpi/) - Popular package that depends on this formula.
- [suite-sparse](https://pkg.so/ja/brew/suite-sparse/) - Popular package that depends on this formula.
- [gambit-scheme](https://pkg.so/ja/brew/gambit-scheme/) - Popular package that depends on this formula.
- [r](https://pkg.so/ja/brew/r/) - Popular package that depends on this formula.
- [cgns](https://pkg.so/ja/brew/cgns/) - Popular package that depends on this formula.
- [go](https://pkg.so/ja/brew/go/) - Shares pkgdb curated category or tags: cli, compiler, language-runtime, toolchain.
- [zig](https://pkg.so/ja/brew/zig/) - Shares pkgdb curated category or tags: cli, compiler, language-runtime, toolchain.
- [swift](https://pkg.so/ja/brew/swift/) - Shares pkgdb curated category or tags: cli, compiler, language-runtime, toolchain.
- [clisp](https://pkg.so/ja/brew/clisp/) - Shares pkgdb curated category or tags: cli, compiler, gnu, language-runtime.
- [flang](https://pkg.so/ja/brew/flang/) - Shares pkgdb curated category or tags: cli, compiler, fortran, language-runtime.
- [gnucobol](https://pkg.so/ja/brew/gnucobol/) - Shares pkgdb curated category or tags: cli, compiler, gnu, language-runtime.
- [gforth](https://pkg.so/ja/brew/gforth/) - Shares pkgdb curated category or tags: cli, compiler, gnu, language-runtime.
- [halide](https://pkg.so/ja/brew/halide/) - Shares pkgdb curated category or tags: c-plus-plus, cli, compiler, language-runtime.
- [aarch64-elf-gcc](https://pkg.so/ja/brew/aarch64-elf-gcc/) - Local package facts share a topical domain. Shared terms: aarch64, c, c-plus-plus, cli, collection.
- [arm-none-eabi-gcc](https://pkg.so/ja/brew/arm-none-eabi-gcc/) - Local package facts share a topical domain. Shared terms: c, cli, collection, compiler, cpp.
- [riscv64-elf-gcc](https://pkg.so/ja/brew/riscv64-elf-gcc/) - Local package facts share a topical domain. Shared terms: cli, collection, compiler, cpp, gcc.
- [gcc](https://pkg.so/ja/cargo/gcc/) - Same normalized package name exists in another local package ecosystem.

## Combined YAML source

View the package source record on GitHub. [combined/gcc.yml](https://github.com/mxcl/pkgdb/blob/main/combined/gcc.yml)


## ソース

- pkg.so package database
- Geiger risk classifier
- package-page enrichment
- curated package history
- package version freshness
- pkgdb category and tag curation
- package relationship graph
- external package-manager database matches
- cross-ecosystem install command graph
