# 使用 Homebrew, apk, apt, dnf, MacPorts, Nix, pacman, zypper, scoop, chocolatey, winget 安装 rustup

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

## 安装

```sh
sudo av install brew:rustup
```

其他安装命令:

### macOS

- Homebrew (100%):

```sh
brew install rustup
```

  证据: local Homebrew formula metadata

- MacPorts (94%):

```sh
sudo port install rustup
```

  证据: MacPorts ports tree: devel/rustup/Portfile from https://api.github.com/repos/macports/macports-ports/git/trees/master?recursive=1

### Linux

- apk (92%):

```sh
sudo apk add rustup
```

  证据: Alpine Linux edge package indexes: rustup from https://dl-cdn.alpinelinux.org/alpine/edge/community/x86_64/APKINDEX.tar.gz

- Debian apt (92%):

```sh
sudo apt install rustup
```

  证据: Debian stable package indexes: rustup from https://deb.debian.org/debian/dists/stable/main/binary-amd64/Packages.xz

- dnf (92%):

```sh
sudo dnf install rustup
```

  证据: Fedora Rawhide package metadata: rustup from https://dl.fedoraproject.org/pub/fedora/linux/development/rawhide/Everything/x86_64/os/repodata/07190dc5ae9f35ae73866675fed6d95fe6e8d9fe22c9d7cdf85862cb2ed24a4c-primary.xml.zst

- Nix (92%):

```sh
nix profile install nixpkgs#rustup
```

  证据: nixpkgs package indexes: rustup from https://raw.githubusercontent.com/NixOS/nixpkgs/master/pkgs/top-level/all-packages.nix

- pacman (92%):

```sh
sudo pacman -S rustup
```

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

- zypper (92%):

```sh
sudo zypper install rustup
```

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

### Windows

- Scoop (92%):

```sh
scoop install main/rustup
```

  证据: Scoop official bucket manifest trees: bucket/rustup.json from https://api.github.com/repos/ScoopInstaller/Main/git/trees/master?recursive=1

- Chocolatey (92%):

```sh
choco install rust-analyzer
```

  证据: Chocolatey community package catalog: rust-analyzer from http://community.chocolatey.org/api/v2/Packages?$filter=IsLatestVersion&$select=Id&$top=1000&$skiptoken='11','revouninstallerpro'

- winget (92%):

```sh
winget install --id Rustlang.rust-analyzer -e
```

  证据: Windows Package Manager source index: Rustlang.rust-analyzer from https://cdn.winget.microsoft.com/cache/source.msix

## 软件包事实

- **软件包键:** brew:rustup
- **软件包管理器:** Homebrew
- **版本:** 1.29.0
- **来源摘要:** Rust toolchain installer
- **主页:** <https://rust-lang.github.io/rustup/>
- **仓库:** <https://github.com/rust-lang/rustup>
- **最后更新:** 2026-07-21T12:31:20Z
- **已生成:** 2026-08-03T19:37:03+00:00

## 可执行文件

- cargo-miri (别名)
- rls (别名)
- rust-analyzer (别名)
- rustup (别名)

## 安装行为

- Bottle: 不可用

## 版本和新鲜度

- 页面生成时间: 2026-08-03
- 管理器版本: 1.29.0

## 安全说明

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



## Configuration and credential file locations

These source-backed paths show where this package keeps local settings or durable credentials. Automic Vault can use them as review targets for secret scanning, migration, and command approval.


## Configuration files

- Unix: ${RUSTUP_HOME}/settings.toml, /etc/rustup/settings.toml
- Windows: %USERPROFILE%\.rustup\settings.toml
## 其他软件包管理器记录

- Debian apt - librust-rustup-dev - 1.27.1-3+b1: normalized package name match | Debian stable package indexes: librust-rustup-dev from https://deb.debian.org/debian/dists/stable/main/binary-amd64/Packages.xz | Manage multiple rust installations with ease - Rust source code | https://github.com/rust-lang/rustup
- Debian apt - rustup - 1.27.1-3+b1: normalized package name match | Debian stable package indexes: rustup from https://deb.debian.org/debian/dists/stable/main/binary-amd64/Packages.xz | Rust toolchain installer | https://github.com/rust-lang/rustup
- Nix - rustup: normalized package name match | nixpkgs package indexes: rustup from https://raw.githubusercontent.com/NixOS/nixpkgs/master/pkgs/top-level/all-packages.nix
- Ubuntu apt - librust-rustup-dev - 1.26.0-5build1: normalized package name match | Ubuntu 24.04 LTS package indexes: librust-rustup-dev from https://archive.ubuntu.com/ubuntu/dists/noble/universe/binary-amd64/Packages.gz | Manage multiple rust installations with ease - Rust source code | https://github.com/rust-lang/rustup
- Ubuntu apt - rustup - 1.26.0-5build1: normalized package name match | Ubuntu 24.04 LTS package indexes: rustup from https://archive.ubuntu.com/ubuntu/dists/noble/universe/binary-amd64/Packages.gz | The Rust toolchain installer | https://github.com/rust-lang/rustup
- apk - rustup - 1.29.0-r0: normalized package name match | Alpine Linux edge package indexes: rustup from https://dl-cdn.alpinelinux.org/alpine/edge/community/x86_64/APKINDEX.tar.gz | Rust toolchain installer | https://rustup.rs/
- apk - rustup-bash-completion - 1.29.0-r0: normalized package name match | Alpine Linux edge package indexes: rustup-bash-completion from https://dl-cdn.alpinelinux.org/alpine/edge/community/x86_64/APKINDEX.tar.gz | Bash completions for rustup | https://rustup.rs/
- apk - rustup-fish-completion - 1.29.0-r0: normalized package name match | Alpine Linux edge package indexes: rustup-fish-completion from https://dl-cdn.alpinelinux.org/alpine/edge/community/x86_64/APKINDEX.tar.gz | Fish completions for rustup | https://rustup.rs/
- apk - rustup-zsh-completion - 1.29.0-r0: normalized package name match | Alpine Linux edge package indexes: rustup-zsh-completion from https://dl-cdn.alpinelinux.org/alpine/edge/community/x86_64/APKINDEX.tar.gz | Zsh completions for rustup | https://rustup.rs/
- dnf - rustup - 1.29.0-6.fc45: normalized package name match | Fedora Rawhide package metadata: rustup from https://dl.fedoraproject.org/pub/fedora/linux/development/rawhide/Everything/x86_64/os/repodata/07190dc5ae9f35ae73866675fed6d95fe6e8d9fe22c9d7cdf85862cb2ed24a4c-primary.xml.zst | Manage multiple rust installations with ease | https://github.com/rust-lang/rustup
- pacman - rustup - 1.29.0-2: normalized package name match | Arch Linux sync databases: rustup from https://geo.mirror.pkgbuild.com/extra/os/x86_64/extra.db.tar.gz | The Rust toolchain installer | https://github.com/rust-lang/rustup.rs
- zypper - rustup - 1.28.2~0-5.2: normalized package name match | openSUSE Tumbleweed package metadata: rustup from https://download.opensuse.org/tumbleweed/repo/oss/repodata/50b07339cb64c8ed4091bdbabddadc1ff5737b090e478818a195b40d8a3292861a879139b4a3987c31109699fde9fbf4a716367ddf4eef77da75f96e3193d6ed-primary.xml.zst | A tool for managing user Rust toolchains | https://github.com/rust-lang/rustup
- MacPorts - rustup: normalized package name match | MacPorts ports tree: devel/rustup/Portfile from https://api.github.com/repos/macports/macports-ports/git/trees/master?recursive=1
- Scoop - main/rustup: normalized package name match | Scoop official bucket manifest trees: bucket/rustup.json from https://api.github.com/repos/ScoopInstaller/Main/git/trees/master?recursive=1
- MacPorts - rust-analyzer: installed executable or alias match | MacPorts ports tree: devel/rust-analyzer/Portfile from https://api.github.com/repos/macports/macports-ports/git/trees/master?recursive=1
- Debian apt - rust-analyzer - 1.85.0+dfsg3-1: installed executable or alias match | Debian stable package indexes: rust-analyzer from https://deb.debian.org/debian/dists/stable/main/binary-amd64/Packages.xz | Rust Language Server Protocol (LSP) implementation | http://www.rust-lang.org/


## Combined YAML source

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


## 来源

- pkg.so package database
- Geiger risk classifier
- curated configuration and credential file locations
- pkgdb category and tag curation
- external package-manager database matches
- cross-ecosystem install command graph
