# 使用 Homebrew, Nix 安装 alp

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

## 安装

```sh
sudo av install brew:alp
```

其他安装命令:

### macOS

- Homebrew (100%):

```sh
brew install alp
```

  证据: local Homebrew formula metadata

### Linux

- Nix (92%):

```sh
nix profile install nixpkgs#alp
```

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

## 软件包事实

- **软件包键:** brew:alp
- **软件包管理器:** Homebrew
- **版本:** 1.0.21
- **来源摘要:** Access Log Profiler
- **主页:** <https://github.com/tkuchiki/alp>
- **仓库:** <https://github.com/tkuchiki/alp>
- **最后更新:** 2026-07-27T09:31:50-04:00
- **已生成:** 2026-08-03T19:37:03+00:00

## 可执行文件

- alp (别名)

## 安装行为

- Bottle: 不可用

## 版本和新鲜度

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

alp is an access log profiler. It reads web access logs and packet captures, groups requests, and reports counts and timing statistics in terminal-friendly formats.

### 项目历史

The official README describes alp simply as Access Log Profiler and documents binary releases, Homebrew installation, asdf installation, and command-based usage. The repository's v0.4.0-to-v1.0.0 migration document records a major reshaping from an LTSV-focused profiler into a multi-format tool with subcommands.

Version 1.0.0 added format-specific subcommands such as `ltsv`, `json`, and `regexp`, later joined in the README by `pcap`, `diff`, and `count`. The v1 transition also consolidated sorting and output options, added filters, added selectable output columns, and introduced position-file support so repeated benchmark runs do not require truncating logs.

### 采用历史

alp is a focused operations tool rather than a broad observability platform. Its adoption comes from developers and performance testers who want a quick CLI profile of HTTP access logs, especially during load testing or application tuning.

Official installation paths include GitHub release binaries, Homebrew on macOS, and asdf through `asdf-alp`. That makes it easy to pin a profiler version in local benchmark environments without introducing a full logging stack.

### 使用方式

Common usage is to feed alp an access log in LTSV, JSON, or regexp-parsed format and sort/group the results by count, latency statistics, status, URI, method, percentiles, or matching groups. It can output table, markdown, TSV, CSV, and HTML formats.

The README also documents `pcap` profiling for captured HTTP requests, `diff` for comparing two profile results, and `count` for counting log entries. Many flags are label/key/subexpression overrides, which lets alp adapt to site-specific log formats without a separate parser.

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

alp is the sort of small Go CLI that package managers are good at: one binary, clear terminal behavior, and direct value in incident or benchmark loops. It sits between ad hoc `awk` pipelines and heavier log-analysis systems.

The v0.4-to-v1 migration is useful package history because it changed the command surface. Anyone packaging shell completions, examples, or old benchmark scripts needs to know that the older one-command LTSV shape became a subcommand-based multi-format CLI.

### 时间线

- v0.4.0: Documented as an Access Log Profiler for LTSV.
- v1.0.0: Added subcommands and support for JSON and regexp formats, with consolidated options and filters.
- Current: README documents LTSV, JSON, regexp, pcap, diff, count, Homebrew, asdf, and binary release installation.

### Related projects

- LTSV is one of alp's first-class log formats.
- asdf-alp provides asdf-based version management for alp.
- Go libraries in the module include cobra, viper, go-ltsv, gopacket, and YAML packages.

### 来源

- <https://raw.githubusercontent.com/tkuchiki/alp/master/README.md>
- <https://raw.githubusercontent.com/tkuchiki/alp/master/docs/the_difference_between_v0_4_0_and_v1_0_0.md>
- <https://raw.githubusercontent.com/tkuchiki/alp/master/go.mod>


## 安全说明

narrow executable package without higher-risk signals.

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

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

- Nix - alp: normalized package name match | nixpkgs package indexes: pkgs/by-name/al/alp/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/alp.yml](https://github.com/mxcl/pkgdb/blob/main/combined/alp.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
