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