macOS
brew install gcc@11local Homebrew formula metadata
sudo port install gcc11MacPorts ports tree · lang/gcc11/Portfile · 来源: api.github.com
安装
brew install gcc@11local Homebrew formula metadata
sudo port install gcc11MacPorts ports tree · lang/gcc11/Portfile · 来源: api.github.com
sudo apt install gcc-11Ubuntu 24.04 LTS package indexes · gcc-11 · 来源: archive.ubuntu.com
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 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.
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.
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.
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.
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.
安全态势
没有找到 gcc@11 的匹配本地密钥处理 manifest。Nucleus 软件包元数据仍在此发布,以便未来覆盖拥有稳定的软件包 URL。
在无人值守的代理使用前,请检查该工具是否读取明文凭据、写入远程状态、发布制品或调用插件。
可执行文件
| 命令 | 类型 | 暴露范围 | 备注 |
|---|---|---|---|
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 | 全局可执行文件 |
新鲜度
这些信号区分页生成时间、软件包管理器活动和上游发布比较。只有存在证据 URL 和可比较版本时,才会提示版本落后。
安装元数据
| 软件包键 | brew:gcc@11 |
|---|---|
| 版本 | 11.5.0 |
| 软件包管理器 | Homebrew |
| 软件包管理器页面 | https://formulae.brew.sh/formula/gcc@11 |
| 主页 | https://gcc.gnu.org/ |
| 仓库 | https://gcc.gnu.org/git/gcc.git |
| 上游文档 | https://gcc.gnu.org/install |
| 许可证 | GPL-3.0-or-later WITH GCC-exception-3.1 |
| 源码归档 | https://ftpmirror.gnu.org/gnu/gcc/gcc-11.5.0/gcc-11.5.0.tar.xz |
| 最后更新 | 2026-07-03T16:37:19-04:00 |
| Pulse | updated |
| 依赖 | gmp, isl, libmpc, mpfr, zstd |
| Bottle | 可用 (于 arm64_linux, arm64_monterey, arm64_sonoma, arm64_ventura, monterey, sonoma, ventura, x86_64_linux) |
| Homebrew post-install | 已定义 |
| 服务 | 未声明 |
注册表事实
| Source Database | Homebrew formula API |
|---|---|
| Tap | homebrew/core |
| Full Name | gcc@11 |
| Version Scheme | 0 |
| Revision | 0 |
| Requirements |
|
| Bottle Stable Root URL | https://ghcr.io/v2/homebrew/core |
| Deprecated | no |
| Disabled | no |
| Keg Only | no |
| URL Keys |
|
源数据库匹配
匹配项来自外部软件包管理器索引,并与本地 Automic Vault 软件包链接分开显示。
cpp-11 11.4.0-9ubuntu1
GNU C preprocessor
sudo apt install cpp-11cpp-11-doc 11.4.0-9ubuntu1
Documentation for the GNU C preprocessor (cpp)
sudo apt install cpp-11-docg++-11 11.4.0-9ubuntu1
GNU C++ compiler
sudo apt install g++-11g++-11-multilib 11.4.0-9ubuntu1
GNU C++ compiler (multilib support)
sudo apt install g++-11-multilibgcc-11 11.4.0-9ubuntu1
GNU C compiler
sudo apt install gcc-11gcc-11-base 11.4.0-9ubuntu1
GCC, the GNU Compiler Collection (base package)
sudo apt install gcc-11-basegcc-11-doc 11.4.0-9ubuntu1
Documentation for the GNU compilers (gcc, gobjc, g++)
sudo apt install gcc-11-docgcc-11-hppa64-linux-gnu 11.4.0-9ubuntu1
GNU C compiler (cross compiler for hppa64)
sudo apt install gcc-11-hppa64-linux-gnugcc-11-locales 11.4.0-9ubuntu1
GCC, the GNU compiler collection (native language support files)
sudo apt install gcc-11-localesgcc-11-multilib 11.4.0-9ubuntu1
GNU C compiler (multilib support)
sudo apt install gcc-11-multilibgcc-11-offload-amdgcn 11.4.0-9ubuntu1
GCC offloading compiler to GCN
sudo apt install gcc-11-offload-amdgcngcc-11-offload-nvptx 11.4.0-9ubuntu1
GCC offloading compiler to NVPTX
sudo apt install gcc-11-offload-nvptxgcc-11-plugin-dev 11.4.0-9ubuntu1
Files for GNU GCC plugin development.
sudo apt install gcc-11-plugin-devgcc-11-source 11.4.0-9ubuntu1
Source of the GNU Compiler Collection
sudo apt install gcc-11-sourcegcc-11-test-results 11.4.0-9ubuntu1
Test results for the GCC test suite
sudo apt install gcc-11-test-resultsgccbrig-11 11.4.0-9ubuntu1
GNU BRIG (HSA IL) frontend
sudo apt install gccbrig-11来源线索
此页面由 av-web 从 scripts/generate-pkg-sqlite.py 生成的私有软件包 SQLite 工件提供。
View the package source record on GitHub.