# 使用 Homebrew, apk, MacPorts, Nix, pacman, winget 安装 rust-script

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

## 安装

```sh
sudo av install brew:rust-script
```

其他安装命令:

### macOS

- Homebrew (100%):

```sh
brew install rust-script
```

  证据: local Homebrew formula metadata

- MacPorts (94%):

```sh
sudo port install rust-script
```

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

### Linux

- apk (92%):

```sh
sudo apk add rust-script
```

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

- Nix (92%):

```sh
nix profile install nixpkgs#rust-script
```

  证据: nixpkgs package indexes: pkgs/by-name/ru/rust-script/package.nix from https://api.github.com/repos/NixOS/nixpkgs/git/trees/master?recursive=1

- pacman (92%):

```sh
sudo pacman -S rust-script
```

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

### Windows

- winget (92%):

```sh
winget install --id FredrikFornwall.Rust-Script -e
```

  证据: Windows Package Manager source index: FredrikFornwall.Rust-Script from https://cdn.winget.microsoft.com/cache/source.msix

## 软件包事实

- **软件包键:** brew:rust-script
- **软件包管理器:** Homebrew
- **版本:** 0.36.0
- **来源摘要:** Run Rust files and expressions as scripts without any setup or compilation step
- **主页:** <https://rust-script.org>
- **仓库:** <https://github.com/fornwall/rust-script>
- **已生成:** 2026-08-03T19:37:03+00:00

## 可执行文件

- rust-script (别名)

## 安装行为

- Bottle: 不可用

## 版本和新鲜度

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

## 安全说明

narrow executable package without higher-risk signals.

- **Geiger 风险:** 绿色 / 低
- narrow executable package without higher-risk signals

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

- Nix - rust-script: normalized package name match | nixpkgs package indexes: pkgs/by-name/ru/rust-script/package.nix from https://api.github.com/repos/NixOS/nixpkgs/git/trees/master?recursive=1
- apk - rust-script - 0.36.0-r0: normalized package name match | Alpine Linux edge package indexes: rust-script from https://dl-cdn.alpinelinux.org/alpine/edge/testing/x86_64/APKINDEX.tar.gz | Run Rust files and expressions as scripts without any setup or compilation step | https://rust-script.org/
- pacman - rust-script - 0.36.0-2: normalized package name match | Arch Linux sync databases: rust-script from https://geo.mirror.pkgbuild.com/extra/os/x86_64/extra.db.tar.gz | Run Rust files and expressions as scripts without any setup or compilation | https://rust-script.org
- MacPorts - rust-script: normalized package name match | MacPorts ports tree: lang/rust-script/Portfile from https://api.github.com/repos/macports/macports-ports/git/trees/master?recursive=1
- winget - FredrikFornwall.Rust-Script: normalized package name match | Windows Package Manager source index: FredrikFornwall.Rust-Script from https://cdn.winget.microsoft.com/cache/source.msix


## 相关链接

- [rust-script](https://pkg.so/zh-hans/pkg/cargo/rust-script/) - Same normalized package name exists in another local package ecosystem.

## Combined YAML source

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


## 来源

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