# 使用 Homebrew, Nix 安装 lsr

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

## 安装

```sh
sudo av install brew:lsr
```

其他安装命令:

### macOS

- Homebrew (100%):

```sh
brew install lsr
```

  证据: local Homebrew formula metadata

### Linux

- Nix (92%):

```sh
nix profile install nixpkgs#lsr
```

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

## 软件包事实

- **软件包键:** brew:lsr
- **软件包管理器:** Homebrew
- **版本:** 1.0.0
- **来源摘要:** Ls but with io_uring
- **主页:** <https://tangled.org/rockorager.dev/lsr>
- **最后更新:** 2026-07-05T13:15:03+09:00
- **已生成:** 2026-08-03T19:37:03+00:00

## 可执行文件

- lsr (别名)

## 安装行为

- Bottle: 不可用

## 版本和新鲜度

- 页面生成时间: 2026-08-03
- 管理器版本: 1.0.0
## 项目历史与用法

lsr is a Zig implementation of `ls(1)` that uses io_uring where possible to reduce syscall overhead. The official README calls it `ls(1)` but with io_uring, and the author's write-up describes it as an exercise in syscall golf.

### 项目历史

The project was publicly introduced by Tim Culverhouse in a 2025-05-06 write-up. The author explains that lsr uses the ourio library and io_uring to batch I/O work such as opening directories, reading local time, user and group data, and performing stat-like calls.

The official repository is hosted on Tangled. Its README documents Zig 0.14.0 build/install instructions, a manpage install target, and common `ls`-style display options including long output, columns, sorting, colors, hyperlinks, icons, and directory grouping.

### 采用历史

lsr is young and specialized, but it already reached Homebrew and Nix in the supplied package facts. Its adoption is primarily among users interested in Linux filesystem performance, Zig tooling, and modern `ls` alternatives.

### 使用方式

Typical usage mirrors `ls`: run `lsr [options] [path]`. The README documents options for one-entry-per-line output, hidden files, columns, color mode, directories-first grouping, OSC 8 hyperlinks, icons, long output, reverse sort, and modification-time sorting.

The author's benchmarks compare lsr against GNU ls, eza, lsd, uutils ls, and BusyBox ls on directories from 10 to 10,000 files. The README notes that lsr works on macOS and BSD too, but the io_uring syscall batching benefits are Linux-specific.

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

lsr is package-nerd interesting because it revisits the most ordinary Unix command with a very modern Linux I/O interface. It is not a general replacement for mature `ls` implementations yet, but it is a compact demonstration of where syscall batching can matter in command-line filesystem tools.

### 时间线

- 2025: Author publishes the lsr write-up and benchmarks.
- 2025: Tangled repository documents version 0.1.0 benchmark data.
- 2026: Supplied package facts list Homebrew and Nix packaging.

### Related projects

- Related tools include GNU coreutils ls, BusyBox ls, eza, lsd, uutils ls, the Zig language, io_uring, and the author's ourio library.

### 来源

- <https://rockorager.dev/posts/lsr-ls-but-with-io-uring/>
- <https://tangled.org/rockorager.dev/lsr>
- <https://tangled.sh/@rockorager.dev/lsr>
- source_facts.package-manager


## 安全说明

narrow executable package without higher-risk signals.

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

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

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


## Combined YAML source

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


## 来源

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