# 使用 Homebrew, MacPorts, Nix, pacman 安装 lesspipe

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

## 安装

```sh
sudo av install brew:lesspipe
```

其他安装命令:

### macOS

- Homebrew (100%):

```sh
brew install lesspipe
```

  证据: local Homebrew formula metadata

- MacPorts (94%):

```sh
sudo port install lesspipe
```

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

### Linux

- Nix (92%):

```sh
nix profile install nixpkgs#lesspipe
```

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

- pacman (92%):

```sh
sudo pacman -S lesspipe
```

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

## 软件包事实

- **软件包键:** brew:lesspipe
- **软件包管理器:** Homebrew
- **版本:** 2.27
- **来源摘要:** Input filter for the pager less
- **主页:** <https://lesspipe.org>
- **仓库:** <https://github.com/wofr06/lesspipe>
- **最后更新:** 2026-06-17T09:20:36+09:00
- **已生成:** 2026-08-03T19:37:03+00:00

## 可执行文件

- archive_color (别名)
- lesspipe.sh (别名)

## 安装行为

- Bottle: 不可用

## 版本和新鲜度

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

lesspipe is a long-running input filter for the `less` pager. It sits in a classic Unix niche: let the pager stay simple, but teach it to render compressed files, archives, documents, media metadata, and nested archive structures through an external preprocessor.

### 项目历史

The project is maintained by Wolfgang Friebel and distributed from the lesspipe web site and the `wofr06/lesspipe` GitHub repository. The maintainer's project page lists early coverage in Linux Magazin 01/2001, CERN Computing Newsletter 01/2002, and Linux User 04/2002, showing that the script was already established in Unix/Linux user circles by the early 2000s.

The changelog shows continuous modernization rather than a frozen shell-script utility: later releases added support for newer archive and document formats, optional syntax colorizers, tab-completion improvements, security fixes, and a 2025 note for a '25 years recursive lesspipe' article.

### 采用历史

lesspipe's adoption follows the shape of pager culture: users opt into it through `LESSOPEN`, distributions package it as a small helper, and package managers expose it as a lightweight add-on for people who live in terminals. Homebrew, MacPorts, Nix, and Arch package metadata in this batch all list a `lesspipe` package.

### 使用方式

The common usage is not to run lesspipe as a destination program, but to configure `less` so the filter is called automatically. Once installed, it makes `less archive.tar.gz`, `less file.pdf`, or nested archive inspection behave like ordinary paging instead of a manual extract-convert-open workflow.

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

Package nerds care about lesspipe because it is a compact example of Unix composition aging well: one pager, one environment hook, and a shell-script filter that tracks the moving target of real-world file formats. It also explains why many Linux users expect `less` to be smarter than upstream `less` alone.

### 时间线

- 2001: Linux Magazin 01/2001 coverage listed on the maintainer's lesspipe page.
- 2002: CERN Computing Newsletter 01/2002 and Linux User 04/2002 coverage listed on the maintainer's lesspipe page.
- 2015: The GitHub repository `wofr06/lesspipe` was created on July 20, 2015.
- 2025: Version 2.18 noted a '25 years recursive lesspipe' article in the lesspipe.sh wiki.
- 2026: Version 2.27 was recorded in the changelog on June 10, 2026.

### Related projects

- lesspipe is tightly coupled to `less` and its `LESSOPEN` input-preprocessor mechanism. It also overlaps with tools it delegates to or competes with for specific formats, including archive utilities, document converters, `file`/magic databases, `bat`, Vim/Neovim-based colorizers, and media metadata tools.

### 来源

- <https://formulae.brew.sh/formula/lesspipe>
- <https://github.com/wofr06/lesspipe>
- <https://github.com/wofr06/lesspipe/blob/lesspipe/ChangeLog>
- <https://lesspipe.org/>
- <https://www-zeuthen.desy.de/~friebel/unix/lesspipe.html>


## 安全说明

broad file, network, media, or database tool signal.

- **Geiger 风险:** blue / 中
- broad file, network, media, or database tool signal

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

- Nix - lesspipe: normalized package name match | nixpkgs package indexes: pkgs/by-name/le/lesspipe/package.nix from https://api.github.com/repos/NixOS/nixpkgs/git/trees/master?recursive=1
- pacman - lesspipe - 2.27-1: normalized package name match | Arch Linux sync databases: lesspipe from https://geo.mirror.pkgbuild.com/extra/os/x86_64/extra.db.tar.gz | an input filter for the pager less | https://www-zeuthen.desy.de/~friebel/unix/lesspipe.html
- MacPorts - lesspipe: normalized package name match | MacPorts ports tree: textproc/lesspipe/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/lesspipe.yml](https://github.com/mxcl/pkgdb/blob/main/combined/lesspipe.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
