# 使用 Homebrew, pacman, zypper 安装 riscv64-elf-gcc

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

## 安装

```sh
sudo av install brew:riscv64-elf-gcc
```

其他安装命令:

### macOS

- Homebrew (100%):

```sh
brew install riscv64-elf-gcc
```

  证据: local Homebrew formula metadata

### Linux

- pacman (92%):

```sh
sudo pacman -S riscv64-elf-gcc
```

  证据: Arch Linux sync databases: riscv64-elf-gcc from https://geo.mirror.pkgbuild.com/extra/os/x86_64/extra.db.tar.gz

- zypper (92%):

```sh
sudo zypper install cross-riscv64-elf-gcc13
```

  证据: openSUSE Tumbleweed package metadata: cross-riscv64-elf-gcc13 from https://download.opensuse.org/tumbleweed/repo/oss/repodata/50b07339cb64c8ed4091bdbabddadc1ff5737b090e478818a195b40d8a3292861a879139b4a3987c31109699fde9fbf4a716367ddf4eef77da75f96e3193d6ed-primary.xml.zst

## 软件包事实

- **软件包键:** brew:riscv64-elf-gcc
- **软件包管理器:** Homebrew
- **软件包管理器页面:** <https://formulae.brew.sh/formula/riscv64-elf-gcc>
- **版本:** 16.1.0
- **来源摘要:** GNU compiler collection for riscv64-elf
- **主页:** <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-04T22:13:35+00:00

## 可执行文件

- riscv64-elf-c++ (cli)
- riscv64-elf-cpp (cli)
- riscv64-elf-g++ (cli)
- riscv64-elf-gcc (cli)
- riscv64-elf-gcc-16.1.0 (cli)
- riscv64-elf-gcc-ar (cli)
- riscv64-elf-gcc-nm (cli)
- riscv64-elf-gcc-ranlib (cli)
- riscv64-elf-gcov (cli)
- riscv64-elf-gcov-dump (cli)
- riscv64-elf-gcov-tool (cli)
- riscv64-elf-lto-dump (cli)
- riscv64-elf-c++ (别名)
- riscv64-elf-cpp (别名)
- riscv64-elf-g++ (别名)
- riscv64-elf-gcc (别名)
- riscv64-elf-gcc-16.1.0 (别名)
- riscv64-elf-gcc-ar (别名)
- riscv64-elf-gcc-nm (别名)
- riscv64-elf-gcc-ranlib (别名)
- riscv64-elf-gcov (别名)
- riscv64-elf-gcov-dump (别名)
- riscv64-elf-gcov-tool (别名)
- riscv64-elf-lto-dump (别名)

## 依赖

- gmp
- libmpc
- mpfr
- riscv64-elf-binutils
- zstd

## 安装行为

- post-install 钩子: 未定义
- Bottle: 可用 于 arm64_linux, arm64_sequoia, arm64_sonoma, arm64_tahoe, sonoma, x86_64_linux

## 版本和新鲜度

- 页面生成时间: 2026-08-04
- 管理器版本: 16.1.0
- 本地数据: OK
- 上游仓库: https://gcc.gnu.org
- 信息: No package-manager update timestamp was available.
- 信息: Release/tag comparison is only available for GitHub repositories.

## 安全说明

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


## 源数据库详情

- **Source Database:** Homebrew formula API
- **Tap:** homebrew/core
- **Full Name:** riscv64-elf-gcc
- **Version Scheme:** 0
- **Revision:** 0
- **Bottle Stable Root URL:** <https://ghcr.io/v2/homebrew/core>
- **Deprecated:** no
- **Disabled:** no
- **Keg Only:** no
- **URL Keys:** stable

## 其他软件包管理器记录

- pacman - riscv64-elf-gcc - 15.2.0-1: normalized package name match | Arch Linux sync databases: riscv64-elf-gcc from https://geo.mirror.pkgbuild.com/extra/os/x86_64/extra.db.tar.gz | The GNU Compiler Collection - cross compiler for RISCV64 (bare-metal) target | https://gcc.gnu.org/
- zypper - cross-riscv64-elf-gcc13 - 13.4.1+git10355-1.3: normalized package name match | openSUSE Tumbleweed package metadata: cross-riscv64-elf-gcc13 from https://download.opensuse.org/tumbleweed/repo/oss/repodata/50b07339cb64c8ed4091bdbabddadc1ff5737b090e478818a195b40d8a3292861a879139b4a3987c31109699fde9fbf4a716367ddf4eef77da75f96e3193d6ed-primary.xml.zst | The GNU Compiler Collection targeting riscv64 | https://gcc.gnu.org/
- zypper - cross-riscv64-elf-gcc13-bootstrap - 13.4.1+git10355-1.3: normalized package name match | openSUSE Tumbleweed package metadata: cross-riscv64-elf-gcc13-bootstrap from https://download.opensuse.org/tumbleweed/repo/oss/repodata/50b07339cb64c8ed4091bdbabddadc1ff5737b090e478818a195b40d8a3292861a879139b4a3987c31109699fde9fbf4a716367ddf4eef77da75f96e3193d6ed-primary.xml.zst | The GNU Compiler Collection targeting riscv64 | https://gcc.gnu.org/
- zypper - cross-riscv64-elf-gcc14 - 14.4.0+git12698-1.3: normalized package name match | openSUSE Tumbleweed package metadata: cross-riscv64-elf-gcc14 from https://download.opensuse.org/tumbleweed/repo/oss/repodata/50b07339cb64c8ed4091bdbabddadc1ff5737b090e478818a195b40d8a3292861a879139b4a3987c31109699fde9fbf4a716367ddf4eef77da75f96e3193d6ed-primary.xml.zst | The GNU Compiler Collection targeting riscv64 | https://gcc.gnu.org/
- zypper - cross-riscv64-elf-gcc14-bootstrap - 14.4.0+git12698-1.3: normalized package name match | openSUSE Tumbleweed package metadata: cross-riscv64-elf-gcc14-bootstrap from https://download.opensuse.org/tumbleweed/repo/oss/repodata/50b07339cb64c8ed4091bdbabddadc1ff5737b090e478818a195b40d8a3292861a879139b4a3987c31109699fde9fbf4a716367ddf4eef77da75f96e3193d6ed-primary.xml.zst | The GNU Compiler Collection targeting riscv64 | https://gcc.gnu.org/
- zypper - cross-riscv64-elf-gcc15 - 15.3.0+git11272-1.3: normalized package name match | openSUSE Tumbleweed package metadata: cross-riscv64-elf-gcc15 from https://download.opensuse.org/tumbleweed/repo/oss/repodata/50b07339cb64c8ed4091bdbabddadc1ff5737b090e478818a195b40d8a3292861a879139b4a3987c31109699fde9fbf4a716367ddf4eef77da75f96e3193d6ed-primary.xml.zst | The GNU Compiler Collection targeting riscv64 | https://gcc.gnu.org/
- zypper - cross-riscv64-elf-gcc15-bootstrap - 15.3.0+git11272-1.3: normalized package name match | openSUSE Tumbleweed package metadata: cross-riscv64-elf-gcc15-bootstrap from https://download.opensuse.org/tumbleweed/repo/oss/repodata/50b07339cb64c8ed4091bdbabddadc1ff5737b090e478818a195b40d8a3292861a879139b4a3987c31109699fde9fbf4a716367ddf4eef77da75f96e3193d6ed-primary.xml.zst | The GNU Compiler Collection targeting riscv64 | https://gcc.gnu.org/
- zypper - cross-riscv64-elf-gcc16 - 16.1.1+git9481-1.1: normalized package name match | openSUSE Tumbleweed package metadata: cross-riscv64-elf-gcc16 from https://download.opensuse.org/tumbleweed/repo/oss/repodata/50b07339cb64c8ed4091bdbabddadc1ff5737b090e478818a195b40d8a3292861a879139b4a3987c31109699fde9fbf4a716367ddf4eef77da75f96e3193d6ed-primary.xml.zst | The GNU Compiler Collection targeting riscv64 | https://gcc.gnu.org/


## 相关链接

- [Terminal utility packages](https://pkg.so/zh-hans/terminal-utilities/) - Matched terminal and command-line workflow metadata.
- [Text processing packages](https://pkg.so/zh-hans/text-processing-tools/) - Matched text, document, or structured-data processing metadata.
- [Developer build packages](https://pkg.so/zh-hans/developer-build-tools/) - Matched build, compiler, generator, or developer workflow metadata.
- [Language runtime packages](https://pkg.so/zh-hans/language-runtime-packages/) - Matched language runtime, compiler, or interpreter metadata.
- [zstd](https://pkg.so/zh-hans/brew/zstd/) - Runtime dependency declared by Homebrew.
- [riscv64-elf-binutils](https://pkg.so/zh-hans/brew/riscv64-elf-binutils/) - Runtime dependency declared by Homebrew.
- [arm-none-eabi-gcc](https://pkg.so/zh-hans/brew/arm-none-eabi-gcc/) - Shares the same upstream homepage.
- [x86_64-elf-gcc](https://pkg.so/zh-hans/brew/x86-64-elf-gcc/) - Shares the same upstream homepage.
- [aarch64-elf-gcc](https://pkg.so/zh-hans/brew/aarch64-elf-gcc/) - Shares the same upstream homepage.
- [i686-elf-gcc](https://pkg.so/zh-hans/brew/i686-elf-gcc/) - Shares the same upstream homepage.
- [m68k-elf-gcc](https://pkg.so/zh-hans/brew/m68k-elf-gcc/) - Shares the same upstream homepage.
- [mingw-w64](https://pkg.so/zh-hans/brew/mingw-w64/) - Shares pkgdb curated category or tags: cli, cross-compilation, developer-tools, gcc, toolchain.
- [arm-linux-gnueabihf-binutils](https://pkg.so/zh-hans/brew/arm-linux-gnueabihf-binutils/) - Shares pkgdb curated category or tags: cli, cross-compilation, developer-tools, gnu, toolchain.
- [riscv64-elf-gdb](https://pkg.so/zh-hans/brew/riscv64-elf-gdb/) - Shares pkgdb curated category or tags: cli, developer-tools, gnu, riscv, toolchain.

## Combined YAML source

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


## 来源

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