# 使用 Homebrew, Nix 安装 landrun

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

## 安装

```sh
sudo av install brew:landrun
```

其他安装命令:

### macOS

- Homebrew (100%):

```sh
brew install landrun
```

  证据: local Homebrew formula metadata

### Linux

- Nix (92%):

```sh
nix profile install nixpkgs#landrun
```

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

## 软件包事实

- **软件包键:** brew:landrun
- **软件包管理器:** Homebrew
- **软件包管理器页面:** <https://formulae.brew.sh/formula/landrun>
- **版本:** 0.1.17
- **来源摘要:** Lightweight, secure sandbox for running Linux processes using Landlock LSM
- **主页:** <https://github.com/Zouuup/landrun>
- **仓库:** <https://github.com/Zouuup/landrun>
- **许可证:** MIT
- **源码归档:** <https://github.com/Zouuup/landrun/archive/refs/tags/v0.1.17.tar.gz>
- **最后更新:** 2026-07-26T13:40:58+02:00
- **已生成:** 2026-08-04T22:13:35+00:00

## 可执行文件

- landrun (cli)
- landrun (别名)

## 构建依赖

- go

## 安装行为

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

## 版本和新鲜度

- 页面生成时间: 2026-08-04
- 管理器版本: 0.1.17
- 管理器更新时间: 2026-07-26
- 本地数据: OK
- 上游仓库: https://github.com/Zouuup/landrun
- 检测到的最新版本: v0.1.17 (当前)
## 项目历史与用法

Landrun is a small Linux command-line sandbox that wraps the kernel Landlock security module so ordinary users can run a process with explicit filesystem and TCP access rules.

### 项目历史

The project appeared publicly in March 2025 with early 0.1.x releases. Its README frames it as a practical front end for Landlock: no root, no containers, no SELinux or AppArmor policy files, and a command-line flag model for read, write, execute, bind, and connect permissions.

The early release stream quickly refined the access model. Version 0.1.3, released on 2025-03-22, added a deny-all behavior when no sandbox rules are provided. Version 0.1.4, released on 2025-03-23, replaced a global execution flag with path-specific execution permissions. Version 0.1.10, released on 2025-03-23, expanded Landlock permission coverage and tests, and version 0.1.14, released on 2025-04-03, added helper flags for dynamically linked executables.

### 采用历史

Landrun's adoption signal is mainly package-nerd and security-tool visibility rather than a long institutional history. The upstream README lists distro packaging for Arch AUR and SlackBuilds, and the Homebrew formula places it in the macOS/Linux package-manager ecosystem even though the underlying sandbox requires Linux Landlock support.

### 使用方式

Typical usage is to prefix another command with `landrun` and add only the paths and TCP ports that process should access. The README also documents a systemd integration pattern for wrapping services such as nginx with reduced filesystem and network permissions.

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

For package collectors, Landrun is notable because it turns a relatively obscure kernel LSM into a normal CLI tool. It sits near tools such as firejail and bubblewrap, but its hook is using unprivileged, kernel-native Landlock rules with a small Go implementation.

### 时间线

- 2025-03-22: v0.1.3 release documented deny-all behavior when no sandbox rules are supplied.
- 2025-03-23: v0.1.4 release introduced path-specific execution permissions.
- 2025-03-23: v0.1.10 release expanded Landlock permission coverage and test coverage.
- 2025-04-03: v0.1.14 release added `--ldd` and `--add-exec` helper flags.

### Related projects

- Related projects include the Linux Landlock LSM, the go-landlock bindings used by Landrun, and user-facing Linux sandbox tools such as firejail and bubblewrap.

### 来源

- <https://github.com/Zouuup/landrun>
- <https://github.com/Zouuup/landrun/releases>


## 安全说明

narrow executable package without higher-risk signals.

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

## 源数据库详情

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

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

- Nix - landrun: normalized package name match | nixpkgs package indexes: pkgs/by-name/la/landrun/package.nix from https://api.github.com/repos/NixOS/nixpkgs/git/trees/master?recursive=1


## 相关链接

- [Source-control packages](https://pkg.so/zh-hans/source-control-tools/) - Belongs to a source-control command family.
- [Terminal utility packages](https://pkg.so/zh-hans/terminal-utilities/) - Matched terminal and command-line workflow metadata.
- [Networking and protocol packages](https://pkg.so/zh-hans/networking-protocol-tools/) - Matched network, protocol, or remote-service metadata.
- [Security and crypto packages](https://pkg.so/zh-hans/security-crypto-tools/) - Matched security, identity, cryptography, password, signing, or certificate metadata.
- [go](https://pkg.so/zh-hans/brew/go/) - Build dependency declared by Homebrew.
- [bubblewrap](https://pkg.so/zh-hans/brew/bubblewrap/) - Shares pkgdb curated category or tags: cli, linux, sandbox, sandboxing, security.
- [libseccomp](https://pkg.so/zh-hans/brew/libseccomp/) - Shares pkgdb curated category or tags: cli, linux, sandboxing, security.
- [fence](https://pkg.so/zh-hans/brew/fence/) - Shares pkgdb curated category or tags: cli, sandbox, sandboxing, security.
- [libcap](https://pkg.so/zh-hans/brew/libcap/) - Shares pkgdb curated category or tags: cli, linux, security.
- [linux-pam](https://pkg.so/zh-hans/brew/linux-pam/) - Shares pkgdb curated category or tags: cli, linux, security.
- [libcap-ng](https://pkg.so/zh-hans/brew/libcap-ng/) - Shares pkgdb curated category or tags: cli, linux, security.
- [vuls](https://pkg.so/zh-hans/brew/vuls/) - Shares pkgdb curated category or tags: cli, linux, security.
- [openssl@3](https://pkg.so/zh-hans/brew/openssl-3/) - Shares pkgdb curated category or tags: cli, security.

## Combined YAML source

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


## 来源

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