Automic VaultAutomic Vault

brew

使用 Homebrew, dnf, MacPorts, pacman, zypper, apk, apt, Nix, scoop 安装 gcc@15

查看 gcc@15 的安装路径、可执行文件、元数据以及面向 AI 代理工作流的安全说明。

安装

其他安装命令

macOS

Homebrew已验证 · 100%
brew install gcc@15

local Homebrew formula metadata

MacPorts已验证 · 94%
sudo port install gcc15

MacPorts ports tree · lang/gcc15/Portfile · 来源: api.github.com

Linux

Fedora dnf已验证 · 92%
sudo dnf install gcc15

Fedora Rawhide package metadata · gcc15 · 来源: dl.fedoraproject.org

Arch Linux pacman已验证 · 92%
sudo pacman -S gcc15

Arch Linux sync databases · gcc15 · 来源: geo.mirror.pkgbuild.com

openSUSE zypper已验证 · 92%
sudo zypper install cpp15

openSUSE Tumbleweed package metadata · cpp15 · 来源: download.opensuse.org

Alpine Linux apk已验证 · 92%
sudo apk add g++

Alpine Linux edge package indexes · g++ · 来源: dl-cdn.alpinelinux.org

Debian apt已验证 · 92%
sudo apt install gcc

Debian stable package indexes · gcc · 来源: deb.debian.org

Nix已验证 · 92%
nix profile install nixpkgs#gcc

nixpkgs package indexes · gcc · 来源: raw.githubusercontent.com

Windows

Scoop已验证 · 92%
scoop install main/gcc

Scoop official bucket manifest trees · bucket/gcc.json · 来源: api.github.com

概览

软件包摘要

GNU compiler collection

命令和别名

  • x86_64-pc-linux-gnu-c++-15
  • x86_64-pc-linux-gnu-g++-15
  • x86_64-pc-linux-gnu-gcc-15
  • x86_64-pc-linux-gnu-gcc-ar-15
  • x86_64-pc-linux-gnu-gcc-nm-15
  • x86_64-pc-linux-gnu-gcc-ranlib-15
  • x86_64-pc-linux-gnu-gfortran-15
  • x86_64-pc-linux-gnu-gm2-15

历史

项目历史与用法

GCC 15 is a versioned Homebrew package for the GCC 15 release series of the GNU Compiler Collection. It provides the GNU Project compiler suite under major-version-suffixed command names so it can coexist with other GCC lines and platform compilers.

GCC itself is one of the central free-software toolchains: the official project describes it as the GNU Compiler Collection, with front ends for C, C++, Objective-C, Fortran, Ada, Go, D, Modula-2, COBOL, Rust, and Algol 68, plus runtime libraries such as libstdc++.

项目历史

GCC began as the GNU C Compiler. The GCC project history records the first beta release on March 22, 1987, by Richard Stallman, originally for the GNU operating system and initially centered on C.

During the 1990s, GCC grew beyond C into a multi-language compiler suite. The official GCC 2.95 page notes that the name changed from GNU C Compiler to GNU Compiler Collection because the compiler supported several languages beyond C.

A major governance and development milestone was the EGCS fork in 1997, created to merge active GCC development work from several communities. GCC and EGCS were reunified in April 1999, and GCC 2.95 was the first release after that reunification.

采用历史

GCC became widely adopted because it was both the GNU system compiler and an openly developed, portable optimizing compiler. The current mission statement emphasizes support for many platforms, many architectures, open mailing lists, and participation by individuals and companies.

The GCC 15 package represents package-manager demand for a stable major compiler series rather than only the newest compiler. Official release branches and tags make these major lines easy for distributors and users to pin, audit, and rebuild.

使用方式

As packaged here, GCC 15 exposes version-suffixed compiler tools such as gcc-15, g++-15, cpp-15, gcov-15, and gfortran-15, depending on the platform package. This lets users select the intended compiler line explicitly in build scripts.

Official GCC installation documentation covers downloading sources, configuring, building, testing, and final installation, while the online manuals document compiler invocation, language front ends, runtime libraries, and toolchain options.

The GCC 15 change notes add package-visible changes such as incremental LTO support, multiple simultaneous diagnostic outputs, expanded OpenMP offload features, and an ISO COBOL compiler front end.

为什么软件包爱好者会关心

Versioned GCC packages matter because compilers are infrastructure, not leaf applications. A build may need a particular major GCC for language support, libstdc++ behavior, Fortran ABI expectations, sanitizer behavior, or target support, while another project on the same machine needs a different line.

The official Git repository page documents release branches and release tags, which is exactly the provenance package maintainers need when mapping formula names such as gcc@12 or gcc@15 to upstream source history.

时间线

  • 1987: First GCC beta release as the GNU C Compiler
  • 1997: EGCS fork announced as an experimental GCC development project
  • 1999: GCC and EGCS reunified; GCC 2.95 released after reunification
  • 2025: GCC 15.1 released on April 25
  • 2026: GCC 15.3 released on June 12

Related projects

  • EGCS is the historically important GCC fork that was later reunified with GCC.
  • Related components within the GCC distribution include libstdc++, GFortran, GOMP/libgomp, GCC Go, GDC, GM2, and newer front ends documented on the official GCC site.
  • GCC is part of the wider GNU toolchain ecosystem and is commonly used with source-control, build, and generated-file tooling such as Git, Autoconf, Bison, Automake, Xgettext, and Gperf, all mentioned in GCC source-tree documentation.

安全态势

尚未找到受保护工具覆盖

没有找到 gcc@15 的匹配本地密钥处理 manifest。Nucleus 软件包元数据仍在此发布,以便未来覆盖拥有稳定的软件包 URL。

安装行为

  • Homebrew 为此 formula 声明了 post-install 钩子。
  • Homebrew bottle 元数据适用于 8 个平台目标。
  • 安装时包含 5 个运行时依赖。
  • 构建元数据列出 1 个构建依赖。

建议审查

在无人值守的代理使用前,请检查该工具是否读取明文凭据、写入远程状态、发布制品或调用插件。

可执行文件

已安装的可执行文件

命令类型暴露范围备注
x86_64-pc-linux-gnu-c++-15cli全局可执行文件
x86_64-pc-linux-gnu-g++-15cli全局可执行文件
x86_64-pc-linux-gnu-gcc-15cli全局可执行文件
x86_64-pc-linux-gnu-gcc-ar-15cli全局可执行文件
x86_64-pc-linux-gnu-gcc-nm-15cli全局可执行文件
x86_64-pc-linux-gnu-gcc-ranlib-15cli全局可执行文件
x86_64-pc-linux-gnu-gfortran-15cli全局可执行文件
x86_64-pc-linux-gnu-gm2-15cli全局可执行文件

新鲜度

版本和新鲜度

这些信号区分页生成时间、软件包管理器活动和上游发布比较。只有存在证据 URL 和可比较版本时,才会提示版本落后。

页面生成时间2026-07-08
管理器版本15.3.0
管理器更新时间2026-06-27
本地数据OK
上游not checked
检测到的最新版本未检测到

https://gcc.gnu.org/

  • 信息Release/tag comparison is only available for GitHub repositories.https://gcc.gnu.org/none 置信度

安装元数据

软件包元数据

软件包键brew:gcc@15
版本15.3.0
软件包管理器Homebrew
软件包管理器页面https://formulae.brew.sh/formula/gcc@15
主页https://gcc.gnu.org/
仓库https://gcc.gnu.org/git/gcc.git
上游文档https://gcc.gnu.org/faq.html
许可证GPL-3.0-or-later WITH GCC-exception-3.1
源码归档https://ftpmirror.gnu.org/gnu/gcc/gcc-15.3.0/gcc-15.3.0.tar.xz
最后更新2026-06-27T22:14:17Z
Pulseupdated
依赖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 DatabaseHomebrew formula API
Taphomebrew/core
Full Namegcc@15
Version Scheme0
Revision0
Bottle Stable Root URLhttps://ghcr.io/v2/homebrew/core
Deprecatedno
Disabledno
Keg Onlyno
URL Keys
  • stable

源数据库匹配

其他软件包管理器记录

匹配项来自外部软件包管理器索引,并与本地 Automic Vault 软件包链接分开显示。

MacPorts94%

gcc15

sudo port install gcc15
  • package manager index match
  • 匹配方式:Gcc15
MacPorts ports tree · api.github.com · MacPorts ports tree: lang/gcc15/Portfile from https://api.github.com/repos/macports/macports-ports/git/trees/master?recursive=1
dnf92%

gcc15 15.2.1-7.fc45

Various compatibility compilers (C, C++, Fortran, ...)

http://gcc.gnu.org

sudo dnf install gcc15
  • License: GPL-3.0-or-later AND LGPL-3.0-or-later AND (GPL-3.0-or-later WITH GCC-exception-3.1) AND (GPL-3.0-or-later WITH Texinfo-exception) AND (LGPL-2.1-or-later WITH
  • Category: Unspecified
  • Architecture: x86_64
  • Source Package: gcc15
  • 15 依赖
  • 2 提供
  • package manager index match
  • 匹配方式:Gcc15
Fedora Rawhide package metadata · dl.fedoraproject.org · Fedora Rawhide package metadata: gcc15 from https://dl.fedoraproject.org/pub/fedora/linux/development/rawhide/Everything/x86_64/os/repodata/e5ca8ce900cd68f5419e1c39ae517343100b306336cbaeb70a3c153121d95094-primary.xml.zst
dnf92%

gcc15-c++ 15.2.1-7.fc45

C++ support for GCC 15 compatibility compiler

http://gcc.gnu.org

sudo dnf install gcc15-c++
  • License: GPL-3.0-or-later AND LGPL-3.0-or-later AND (GPL-3.0-or-later WITH GCC-exception-3.1) AND (GPL-3.0-or-later WITH Texinfo-exception) AND (LGPL-2.1-or-later WITH
  • Category: Unspecified
  • Architecture: x86_64
  • Source Package: gcc15
  • 11 依赖
  • 1 提供
  • package manager index match
  • 匹配方式:Gcc15
Fedora Rawhide package metadata · dl.fedoraproject.org · Fedora Rawhide package metadata: gcc15-c++ from https://dl.fedoraproject.org/pub/fedora/linux/development/rawhide/Everything/x86_64/os/repodata/e5ca8ce900cd68f5419e1c39ae517343100b306336cbaeb70a3c153121d95094-primary.xml.zst
dnf92%

gcc15-gfortran 15.2.1-7.fc45

Fortran support for GCC 15 compatibility compiler

http://gcc.gnu.org

sudo dnf install gcc15-gfortran
  • License: GPL-3.0-or-later AND LGPL-3.0-or-later AND (GPL-3.0-or-later WITH GCC-exception-3.1) AND (GPL-3.0-or-later WITH Texinfo-exception) AND (LGPL-2.1-or-later WITH
  • Category: Unspecified
  • Architecture: x86_64
  • Source Package: gcc15
  • 14 依赖
  • 1 提供
  • package manager index match
  • 匹配方式:Gcc15
Fedora Rawhide package metadata · dl.fedoraproject.org · Fedora Rawhide package metadata: gcc15-gfortran from https://dl.fedoraproject.org/pub/fedora/linux/development/rawhide/Everything/x86_64/os/repodata/e5ca8ce900cd68f5419e1c39ae517343100b306336cbaeb70a3c153121d95094-primary.xml.zst
pacman92%

gcc15 15.2.1+r934+gbcd3e3ff5aa7-1

The GNU Compiler Collection - C and C++ frontends (15.x.x)

https://gcc.gnu.org

sudo pacman -S gcc15
  • License: GPL-3.0-with-GCC-exception AND GFDL-1.3-or-later
  • Architecture: x86_64
  • 5 依赖
  • package manager index match
  • 匹配方式:Gcc15
Arch Linux sync databases · geo.mirror.pkgbuild.com · Arch Linux sync databases: gcc15 from https://geo.mirror.pkgbuild.com/extra/os/x86_64/extra.db.tar.gz
zypper92%

cpp15 15.2.1+git11263-1.1

The GCC Preprocessor

https://gcc.gnu.org/

sudo zypper install cpp15
  • License: GPL-3.0-or-later
  • Category: Development/Languages/C and C++
  • Architecture: x86_64
  • Source Package: gcc15
  • 9 依赖
  • 1 提供
  • package manager index match
  • 匹配方式:Gcc15
openSUSE Tumbleweed package metadata · download.opensuse.org · openSUSE Tumbleweed package metadata: cpp15 from https://download.opensuse.org/tumbleweed/repo/oss/repodata/be8d3611d25469107f32075a1697e69ec57a2b850b42348a658cc671ad5ec2b50760d02c3e59524d50da9a11d5be799bdaffba2e166e8ca8858512e3c0bd665d-primary.xml.zst
zypper92%

gcc15 15.2.1+git11263-1.1

The GNU C Compiler and Support Files

https://gcc.gnu.org/

sudo zypper install gcc15
  • License: GPL-3.0-or-later
  • Category: Development/Languages/C and C++
  • Architecture: x86_64
  • Source Package: gcc15
  • 24 依赖
  • 1 提供
  • package manager index match
  • 匹配方式:Gcc15
openSUSE Tumbleweed package metadata · download.opensuse.org · openSUSE Tumbleweed package metadata: gcc15 from https://download.opensuse.org/tumbleweed/repo/oss/repodata/be8d3611d25469107f32075a1697e69ec57a2b850b42348a658cc671ad5ec2b50760d02c3e59524d50da9a11d5be799bdaffba2e166e8ca8858512e3c0bd665d-primary.xml.zst
zypper92%

gcc15-32bit 15.2.1+git11263-1.1

The GNU C Compiler 32bit support

https://gcc.gnu.org/

sudo zypper install gcc15-32bit
  • License: GPL-3.0-or-later
  • Category: Development/Languages/C and C++
  • Architecture: x86_64
  • Source Package: gcc15
  • 14 依赖
  • 1 提供
  • package manager index match
  • 匹配方式:Gcc15
openSUSE Tumbleweed package metadata · download.opensuse.org · openSUSE Tumbleweed package metadata: gcc15-32bit from https://download.opensuse.org/tumbleweed/repo/oss/repodata/be8d3611d25469107f32075a1697e69ec57a2b850b42348a658cc671ad5ec2b50760d02c3e59524d50da9a11d5be799bdaffba2e166e8ca8858512e3c0bd665d-primary.xml.zst
zypper92%

gcc15-PIE 15.2.1+git11263-1.1

A default configuration to build all binaries in PIE mode

https://gcc.gnu.org/

sudo zypper install gcc15-PIE
  • License: GPL-3.0-or-later
  • Category: Development/Languages/Other
  • Architecture: x86_64
  • Source Package: gcc15
  • 1 依赖
  • 1 提供
  • package manager index match
  • 匹配方式:Gcc15
openSUSE Tumbleweed package metadata · download.opensuse.org · openSUSE Tumbleweed package metadata: gcc15-PIE from https://download.opensuse.org/tumbleweed/repo/oss/repodata/be8d3611d25469107f32075a1697e69ec57a2b850b42348a658cc671ad5ec2b50760d02c3e59524d50da9a11d5be799bdaffba2e166e8ca8858512e3c0bd665d-primary.xml.zst
zypper92%

gcc15-ada 15.2.1+git11263-1.1

GNU Ada Compiler Based on GCC (GNAT)

https://gcc.gnu.org/

sudo zypper install gcc15-ada
  • License: GPL-3.0-or-later
  • Category: Development/Languages/Other
  • Architecture: x86_64
  • Source Package: gcc15
  • 11 依赖
  • 1 提供
  • package manager index match
  • 匹配方式:Gcc15
openSUSE Tumbleweed package metadata · download.opensuse.org · openSUSE Tumbleweed package metadata: gcc15-ada from https://download.opensuse.org/tumbleweed/repo/oss/repodata/be8d3611d25469107f32075a1697e69ec57a2b850b42348a658cc671ad5ec2b50760d02c3e59524d50da9a11d5be799bdaffba2e166e8ca8858512e3c0bd665d-primary.xml.zst
zypper92%

gcc15-ada-32bit 15.2.1+git11263-1.1

GNU Ada Compiler Based on GCC (GNAT)

https://gcc.gnu.org/

sudo zypper install gcc15-ada-32bit
  • License: GPL-3.0-or-later
  • Category: Development/Languages/Other
  • Architecture: x86_64
  • Source Package: gcc15
  • 3 依赖
  • 1 提供
  • package manager index match
  • 匹配方式:Gcc15
openSUSE Tumbleweed package metadata · download.opensuse.org · openSUSE Tumbleweed package metadata: gcc15-ada-32bit from https://download.opensuse.org/tumbleweed/repo/oss/repodata/be8d3611d25469107f32075a1697e69ec57a2b850b42348a658cc671ad5ec2b50760d02c3e59524d50da9a11d5be799bdaffba2e166e8ca8858512e3c0bd665d-primary.xml.zst
zypper92%

gcc15-c++ 15.2.1+git11263-1.1

The GNU C++ Compiler

https://gcc.gnu.org/

sudo zypper install gcc15-c++
  • License: GPL-3.0-or-later
  • Category: Development/Languages/C and C++
  • Architecture: x86_64
  • Source Package: gcc15
  • 11 依赖
  • 1 提供
  • package manager index match
  • 匹配方式:Gcc15
openSUSE Tumbleweed package metadata · download.opensuse.org · openSUSE Tumbleweed package metadata: gcc15-c++ from https://download.opensuse.org/tumbleweed/repo/oss/repodata/be8d3611d25469107f32075a1697e69ec57a2b850b42348a658cc671ad5ec2b50760d02c3e59524d50da9a11d5be799bdaffba2e166e8ca8858512e3c0bd665d-primary.xml.zst
zypper92%

gcc15-c++-32bit 15.2.1+git11263-1.1

The GNU C++ Compiler

https://gcc.gnu.org/

sudo zypper install gcc15-c++-32bit
  • License: GPL-3.0-or-later
  • Category: Development/Languages/C and C++
  • Architecture: x86_64
  • Source Package: gcc15
  • 3 依赖
  • 1 提供
  • package manager index match
  • 匹配方式:Gcc15
openSUSE Tumbleweed package metadata · download.opensuse.org · openSUSE Tumbleweed package metadata: gcc15-c++-32bit from https://download.opensuse.org/tumbleweed/repo/oss/repodata/be8d3611d25469107f32075a1697e69ec57a2b850b42348a658cc671ad5ec2b50760d02c3e59524d50da9a11d5be799bdaffba2e166e8ca8858512e3c0bd665d-primary.xml.zst
zypper92%

gcc15-cobol 15.2.1+git11263-1.1

GNU GCC COBOL Compiler

https://gcc.gnu.org/

sudo zypper install gcc15-cobol
  • License: GPL-3.0-or-later
  • Category: Development/Languages/Other
  • Architecture: x86_64
  • Source Package: gcc15
  • 15 依赖
  • 1 提供
  • package manager index match
  • 匹配方式:Gcc15
openSUSE Tumbleweed package metadata · download.opensuse.org · openSUSE Tumbleweed package metadata: gcc15-cobol from https://download.opensuse.org/tumbleweed/repo/oss/repodata/be8d3611d25469107f32075a1697e69ec57a2b850b42348a658cc671ad5ec2b50760d02c3e59524d50da9a11d5be799bdaffba2e166e8ca8858512e3c0bd665d-primary.xml.zst
zypper92%

gcc15-d 15.2.1+git11263-1.1

GNU D Compiler

https://gcc.gnu.org/

sudo zypper install gcc15-d
  • License: GPL-3.0-or-later
  • Category: Development/Languages/Other
  • Architecture: x86_64
  • Source Package: gcc15
  • 13 依赖
  • 1 提供
  • package manager index match
  • 匹配方式:Gcc15
openSUSE Tumbleweed package metadata · download.opensuse.org · openSUSE Tumbleweed package metadata: gcc15-d from https://download.opensuse.org/tumbleweed/repo/oss/repodata/be8d3611d25469107f32075a1697e69ec57a2b850b42348a658cc671ad5ec2b50760d02c3e59524d50da9a11d5be799bdaffba2e166e8ca8858512e3c0bd665d-primary.xml.zst
zypper92%

gcc15-d-32bit 15.2.1+git11263-1.1

GNU D Compiler

https://gcc.gnu.org/

sudo zypper install gcc15-d-32bit
  • License: GPL-3.0-or-later
  • Category: Development/Languages/Other
  • Architecture: x86_64
  • Source Package: gcc15
  • 8 依赖
  • 1 提供
  • package manager index match
  • 匹配方式:Gcc15
openSUSE Tumbleweed package metadata · download.opensuse.org · openSUSE Tumbleweed package metadata: gcc15-d-32bit from https://download.opensuse.org/tumbleweed/repo/oss/repodata/be8d3611d25469107f32075a1697e69ec57a2b850b42348a658cc671ad5ec2b50760d02c3e59524d50da9a11d5be799bdaffba2e166e8ca8858512e3c0bd665d-primary.xml.zst

来源线索

由仓库数据生成

此页面由 av-webscripts/generate-pkg-sqlite.py 生成的私有软件包 SQLite 工件提供。

使用的来源

  • Nucleus package database
  • cross-ecosystem install command graph
  • curated package history
  • external package-manager database matches
  • package relationship graph
  • package version freshness
  • package-page enrichment