# 使用 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
- **软件包管理器页面:** <https://formulae.brew.sh/formula/alp>
- **版本:** 1.0.21
- **来源摘要:** Access Log Profiler
- **主页:** <https://github.com/tkuchiki/alp>
- **仓库:** <https://github.com/tkuchiki/alp>
- **许可证:** MIT
- **源码归档:** <https://github.com/tkuchiki/alp/archive/refs/tags/v1.0.21.tar.gz>
- **最后更新:** 2026-07-27T09:31:50-04:00
- **已生成:** 2026-08-04T22:13:35+00:00

## 可执行文件

- alp (cli)
- alp (别名)

## 构建依赖

- go

## 安装行为

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

## 版本和新鲜度

- 页面生成时间: 2026-08-04
- 管理器版本: 1.0.21
- 管理器更新时间: 2026-07-27
- 本地数据: OK
- 上游仓库: https://github.com/tkuchiki/alp
- 检测到的最新版本: v1.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

## 源数据库详情

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

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

- 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


## 相关链接

- [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.
- [Text processing packages](https://pkg.so/zh-hans/text-processing-tools/) - Matched text, document, or structured-data processing metadata.
- [Developer build packages](https://pkg.so/zh-hans/developer-build-tools/) - Matched build, compiler, generator, or developer workflow metadata.
- [go](https://pkg.so/zh-hans/brew/go/) - Build dependency declared by Homebrew.
- [sentry-cli](https://pkg.so/zh-hans/brew/sentry-cli/) - Shares pkgdb curated category or tags: cli, developer-tools, observability.
- [lnav](https://pkg.so/zh-hans/brew/lnav/) - Shares pkgdb curated category or tags: cli, developer-tools, logs.
- [lttng-ust](https://pkg.so/zh-hans/brew/lttng-ust/) - Shares pkgdb curated category or tags: cli, developer-tools, observability.
- [newrelic-cli](https://pkg.so/zh-hans/brew/newrelic-cli/) - Shares pkgdb curated category or tags: cli, developer-tools, observability.
- [otel-cli](https://pkg.so/zh-hans/brew/otel-cli/) - Shares pkgdb curated category or tags: cli, developer-tools, observability.
- [parca](https://pkg.so/zh-hans/brew/parca/) - Shares pkgdb curated category or tags: cli, developer-tools, observability.
- [stern](https://pkg.so/zh-hans/brew/stern/) - Shares pkgdb curated category or tags: cli, developer-tools, logs, observability.
- [grafana-alloy](https://pkg.so/zh-hans/brew/grafana-alloy/) - Shares pkgdb curated category or tags: cli, developer-tools, logs, observability.

## 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
- 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
