macOS
brew install gcclocal Homebrew formula metadata
安装
brew install gcclocal Homebrew formula metadata
sudo apk add gccAlpine Linux edge package indexes · gcc · 来源: dl-cdn.alpinelinux.org
sudo dnf install gccFedora Rawhide package metadata · gcc · 来源: dl.fedoraproject.org
nix profile install nixpkgs#gccnixpkgs package indexes · gcc · 来源: raw.githubusercontent.com
sudo pacman -S gccArch Linux sync databases · gcc · 来源: geo.mirror.pkgbuild.com
sudo zypper install gccopenSUSE Tumbleweed package metadata · gcc · 来源: download.opensuse.org
scoop install main/gccScoop official bucket manifest trees · bucket/gcc.json · 来源: api.github.com
概览
GNU compiler collection
历史
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.
安全态势
compiler and toolchain runtime.
yellow 风险 · 高 置信度 · runtime
在无人值守的代理使用前,请检查该工具是否读取明文凭据、写入远程状态、发布制品或调用插件。
可执行文件
| 命令 | 类型 | 暴露范围 | 备注 |
|---|---|---|---|
aarch64-unknown-linux-gnu-c++-15 | cli | 全局可执行文件 | |
aarch64-unknown-linux-gnu-g++-15 | cli | 全局可执行文件 | |
aarch64-unknown-linux-gnu-gcc-15 | cli | 全局可执行文件 | |
aarch64-unknown-linux-gnu-gcc-ar-15 | cli | 全局可执行文件 | |
aarch64-unknown-linux-gnu-gcc-nm-15 | cli | 全局可执行文件 | |
aarch64-unknown-linux-gnu-gcc-ranlib-15 | cli | 全局可执行文件 | |
aarch64-unknown-linux-gnu-gfortran-15 | cli | 全局可执行文件 | |
aarch64-unknown-linux-gnu-gm2-15 | cli | 全局可执行文件 | |
c++-15 | cli | 全局可执行文件 | |
cpp-15 | cli | 全局可执行文件 | |
g++-15 | cli | 全局可执行文件 | |
gcc-15 | cli | 全局可执行文件 | |
gcc-ar-15 | cli | 全局可执行文件 | |
gcc-nm-15 | cli | 全局可执行文件 | |
gcc-ranlib-15 | cli | 全局可执行文件 | |
gcov-15 | cli | 全局可执行文件 | |
gcov-dump-15 | cli | 全局可执行文件 | |
gcov-tool-15 | cli | 全局可执行文件 | |
gfortran | cli | 全局可执行文件 | |
gfortran-15 | cli | 全局可执行文件 | |
gm2 | cli | 全局可执行文件 | |
gm2-15 | cli | 全局可执行文件 | |
lto-dump-15 | cli | 全局可执行文件 |
新鲜度
这些信号区分页生成时间、软件包管理器活动和上游发布比较。只有存在证据 URL 和可比较版本时,才会提示版本落后。
安装元数据
| 软件包键 | brew:gcc |
|---|---|
| 版本 | 16.1.0 |
| 软件包管理器 | Homebrew |
| 软件包管理器页面 | https://formulae.brew.sh/formula/gcc |
| 主页 | https://gcc.gnu.org/ |
| 仓库 | https://gcc.gnu.org/git/gcc.git |
| 上游文档 | https://gcc.gnu.org/onlinedocs |
| 许可证 | 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-07-03T22:53:05-04:00 |
| Pulse | updated |
| 依赖 | gmp, isl, libmpc, mpfr, zstd |
| 构建依赖 | make |
| Bottle | 可用 (于 arm64_linux, arm64_sequoia, arm64_sonoma, arm64_tahoe, sequoia, sonoma, tahoe, x86_64_linux) |
| Homebrew post-install | 已定义 |
| 服务 | 未声明 |
注册表事实
| Source Database | Homebrew formula API |
|---|---|
| Tap | homebrew/core |
| Full Name | gcc |
| Aliases |
|
| 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 |
|
源数据库匹配
匹配项来自外部软件包管理器索引,并与本地 Automic Vault 软件包链接分开显示。
gcc 4:14.2.0-1
GNU C compiler
sudo apt install gccgcc
nix profile install nixpkgs#gccgcc 4:13.2.0-7ubuntu1
GNU C compiler
sudo apt install gccg++ 15.2.0-r5
GNU C++ standard library and compiler
sudo apk add g++gcc 15.2.0-r5
The GNU Compiler Collection
sudo apk add gccgcc-doc 15.2.0-r5
The GNU Compiler Collection (documentation)
sudo apk add gcc-docgcc-gdb 15.2.0-r5
The GNU Compiler Collection (gdb printers)
sudo apk add gcc-gdbgcc-gdc 15.2.0-r5
GCC-based D language compiler
sudo apk add gcc-gdcgcc-gnat 15.2.0-r5
Ada support for GCC
sudo apk add gcc-gnatgcc-go 15.2.0-r5
GCC Go frontend (intended for bootstrapping community/go)
sudo apk add gcc-gogcc-objc 15.2.0-r5
GNU Objective-C
sudo apk add gcc-objcgfortran 15.2.0-r5
GNU Fortran Compiler
sudo apk add gfortranlibatomic 15.2.0-r5
GCC Atomic library
sudo apk add libatomiclibgcc 15.2.0-r5
GNU C compiler runtime libraries
sudo apk add libgcclibgcc-static 15.2.0-r5
GNU C compiler runtime libraries
sudo apk add libgcc-staticlibgccjit 15.2.0-r5
GCC JIT Library
sudo apk add libgccjit来源线索
此页面由 av-web 从 scripts/generate-pkg-sqlite.py 生成的私有软件包 SQLite 工件提供。
View the package source record on GitHub.