# 使用 Homebrew, apk, dnf, MacPorts, Nix, pacman, zypper 安装 samurai

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

## 安装

```sh
sudo av install brew:samurai
```

其他安装命令:

### macOS

- Homebrew (100%):

```sh
brew install samurai
```

  证据: local Homebrew formula metadata

- MacPorts (94%):

```sh
sudo port install samurai
```

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

### Linux

- apk (92%):

```sh
sudo apk add samurai
```

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

- dnf (92%):

```sh
sudo dnf install samurai
```

  证据: Fedora Rawhide package metadata: samurai 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#samurai
```

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

- pacman (92%):

```sh
sudo pacman -S samurai
```

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

- zypper (92%):

```sh
sudo zypper install samurai
```

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

## 软件包事实

- **软件包键:** brew:samurai
- **软件包管理器:** Homebrew
- **版本:** 1.3
- **来源摘要:** Ninja-compatible build tool written in C
- **主页:** <https://github.com/michaelforney/samurai>
- **仓库:** <https://github.com/michaelforney/samurai>
- **最后更新:** 2026-06-25T01:52:33-04:00
- **已生成:** 2026-08-03T19:37:03+00:00

## 可执行文件

- samu (别名)

## 安装行为

- Bottle: 不可用

## 版本和新鲜度

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

## 安全说明

generalized runtime or code generation signal.

- **Geiger 风险:** yellow / 中
- generalized runtime or code generation signal

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

- Nix - samurai: normalized package name match | nixpkgs package indexes: pkgs/by-name/sa/samurai/package.nix from https://api.github.com/repos/NixOS/nixpkgs/git/trees/master?recursive=1
- apk - samurai - 1.3-r0: normalized package name match | Alpine Linux edge package indexes: samurai from https://dl-cdn.alpinelinux.org/alpine/edge/main/x86_64/APKINDEX.tar.gz | ninja-compatible build tool written in C | https://github.com/michaelforney/samurai
- apk - samurai-dbg - 1.3-r0: normalized package name match | Alpine Linux edge package indexes: samurai-dbg from https://dl-cdn.alpinelinux.org/alpine/edge/main/x86_64/APKINDEX.tar.gz | ninja-compatible build tool written in C (debug symbols) | https://github.com/michaelforney/samurai
- apk - samurai-doc - 1.3-r0: normalized package name match | Alpine Linux edge package indexes: samurai-doc from https://dl-cdn.alpinelinux.org/alpine/edge/main/x86_64/APKINDEX.tar.gz | ninja-compatible build tool written in C (documentation) | https://github.com/michaelforney/samurai
- dnf - samurai - 1.3-6.fc45: normalized package name match | Fedora Rawhide package metadata: samurai from https://dl.fedoraproject.org/pub/fedora/linux/development/rawhide/Everything/x86_64/os/repodata/07190dc5ae9f35ae73866675fed6d95fe6e8d9fe22c9d7cdf85862cb2ed24a4c-primary.xml.zst | ninja-compatible build tool written in C | https://github.com/michaelforney/samurai
- pacman - samurai - 1.3-1: normalized package name match | Arch Linux sync databases: samurai from https://geo.mirror.pkgbuild.com/extra/os/x86_64/extra.db.tar.gz | ninja-compatible build tool written in C | https://github.com/michaelforney/samurai
- zypper - samurai - 1.2+git41.g737f702-1.5: normalized package name match | openSUSE Tumbleweed package metadata: samurai from https://download.opensuse.org/tumbleweed/repo/oss/repodata/50b07339cb64c8ed4091bdbabddadc1ff5737b090e478818a195b40d8a3292861a879139b4a3987c31109699fde9fbf4a716367ddf4eef77da75f96e3193d6ed-primary.xml.zst | C99 implementation of the ninja build tool | https://github.com/michaelforney/samurai
- MacPorts - samurai: normalized package name match | MacPorts ports tree: devel/samurai/Portfile from https://api.github.com/repos/macports/macports-ports/git/trees/master?recursive=1


## Combined YAML source

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


## 来源

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