# 使用 Homebrew, MacPorts, Nix, zypper 安装 amp

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

## 安装

```sh
sudo av install brew:amp
```

其他安装命令:

### macOS

- Homebrew (100%):

```sh
brew install amp
```

  证据: local Homebrew formula metadata

- MacPorts (94%):

```sh
sudo port install amp
```

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

### Linux

- Nix (92%):

```sh
nix profile install nixpkgs#amp
```

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

- zypper (92%):

```sh
sudo zypper install amp
```

  证据: openSUSE Tumbleweed package metadata: amp from https://download.opensuse.org/tumbleweed/repo/oss/repodata/50b07339cb64c8ed4091bdbabddadc1ff5737b090e478818a195b40d8a3292861a879139b4a3987c31109699fde9fbf4a716367ddf4eef77da75f96e3193d6ed-primary.xml.zst

## 软件包事实

- **软件包键:** brew:amp
- **软件包管理器:** Homebrew
- **软件包管理器页面:** <https://formulae.brew.sh/formula/amp>
- **版本:** 0.7.1
- **来源摘要:** Text editor for your terminal
- **主页:** <https://amp.rs>
- **仓库:** <https://github.com/jmacdonald/amp>
- **上游文档:** <https://amp.rs>
- **许可证:** GPL-3.0-or-later
- **源码归档:** <https://github.com/jmacdonald/amp/archive/refs/tags/0.7.1.tar.gz>
- **已生成:** 2026-08-04T22:13:35+00:00

## 可执行文件

- amp (cli)
- amp (别名)

## 构建依赖

- cmake
- rust

## 安装行为

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

## 版本和新鲜度

- 页面生成时间: 2026-08-04
- 管理器版本: 0.7.1
- 本地数据: OK
- 上游仓库: https://github.com/jmacdonald/amp
- 检测到的最新版本: 0.7.1 (当前)
- 信息: No package-manager update timestamp was available.
## 项目历史与用法

Amp is a Rust terminal text editor inspired by Vi and Vim. Its README says it aims to keep Vim's core interaction model, simplify it, and bundle the essential features expected from a modern terminal editor.

### 项目历史

The public GitHub repository was created in February 2015. The project is written in Rust and separates substantial editor internals, including data structures, syntax highlighting, and workspace management, into the related `scribe` crate.

Amp's documentation presents the editor as a terminal-native application with modal editing, file finding, system clipboard support, preferences, keymaps, and syntax configuration. The latest GitHub release observed for this batch is 0.7.1, published in September 2024.

### 采用历史

Amp's adoption has been niche rather than mass-market: it is a package-manager-distributed editor for users interested in Rust command-line software and Vim-like interaction without carrying Vim's full compatibility surface.

The supplied package facts show availability through Homebrew, MacPorts, Nix, and zypper, which is the typical adoption path for a small terminal editor: easy enough to install from a package manager, but still mostly discovered by users looking for lightweight editor experiments.

### 使用方式

Users run the `amp` executable in a terminal. The official docs describe preferences as a YAML file in a platform-dependent configuration folder and recommend using the built-in `preferences::edit` command to open it and reveal its path.

The practical use case is quick terminal editing with modal commands, file navigation, syntax highlighting, and configurable keymaps. It is not presented as an IDE; it is a compact editor with enough modern conveniences to stand on its own.

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

Amp is interesting to package nerds as an example of the mid-2010s Rust CLI wave: a familiar Unix tool category rebuilt as a single cargo-built binary, then surfaced through multiple OS package sets.

Its split between the editor and the `scribe` crate is also notable because it turns editor infrastructure into reusable Rust components rather than burying all of it in one executable.

### 时间线

- 2015: GitHub repository created.
- 2015 onward: Amp develops as a Rust terminal editor inspired by Vi/Vim.
- 2024: Release 0.7.1 published.

### Related projects

- Vim and Vi: the editing model Amp explicitly cites as inspiration.
- scribe: Amp's related Rust crate for editor internals.
- Rust: the implementation language and ecosystem that shaped Amp's packaging story.

### 来源

- <https://amp.rs/docs>
- <https://amp.rs/docs/configuration>
- <https://api.github.com/repos/jmacdonald/amp>
- <https://api.github.com/repos/jmacdonald/amp/releases/latest>
- <https://github.com/jmacdonald/amp>
- <https://github.com/jmacdonald/amp#readme>
- source_facts.package-manager


## 安全说明

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:** amp
- **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 - amp: normalized package name match | nixpkgs package indexes: pkgs/by-name/am/amp/package.nix from https://api.github.com/repos/NixOS/nixpkgs/git/trees/master?recursive=1
- zypper - amp - 0.7.1-2.5: normalized package name match | openSUSE Tumbleweed package metadata: amp from https://download.opensuse.org/tumbleweed/repo/oss/repodata/50b07339cb64c8ed4091bdbabddadc1ff5737b090e478818a195b40d8a3292861a879139b4a3987c31109699fde9fbf4a716367ddf4eef77da75f96e3193d6ed-primary.xml.zst | A modal text editor for the terminal | https://github.com/jmacdonald/amp
- MacPorts - amp: normalized package name match | MacPorts ports tree: editors/amp/Portfile from https://api.github.com/repos/macports/macports-ports/git/trees/master?recursive=1


## 相关链接

- [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.
- [Language runtime packages](https://pkg.so/zh-hans/language-runtime-packages/) - Matched language runtime, compiler, or interpreter metadata.
- [Networking and protocol packages](https://pkg.so/zh-hans/networking-protocol-tools/) - Matched network, protocol, or remote-service metadata.
- [cmake](https://pkg.so/zh-hans/brew/cmake/) - Build dependency declared by Homebrew.
- [rust](https://pkg.so/zh-hans/brew/rust/) - Build dependency declared by Homebrew.
- [kibi](https://pkg.so/zh-hans/brew/kibi/) - Shares pkgdb curated category or tags: cli, productivity, rust, terminal, text-editor.
- [ad](https://pkg.so/zh-hans/brew/ad/) - Shares pkgdb curated category or tags: cli, productivity, rust, text-editor.
- [jupp](https://pkg.so/zh-hans/brew/jupp/) - Shares pkgdb curated category or tags: cli, productivity, terminal, text-editor.
- [emacs](https://pkg.so/zh-hans/brew/emacs/) - Shares pkgdb curated category or tags: cli, productivity, text-editor.
- [gedit](https://pkg.so/zh-hans/brew/gedit/) - Shares pkgdb curated category or tags: cli, productivity, text-editor.
- [enter-tex](https://pkg.so/zh-hans/brew/enter-tex/) - Shares pkgdb curated category or tags: cli, productivity, text-editor.
- [ox](https://pkg.so/zh-hans/brew/ox/) - Shares pkgdb curated category or tags: cli, productivity, rust, terminal, text-editor.
- [openvi](https://pkg.so/zh-hans/brew/openvi/) - Shares pkgdb curated category or tags: cli, productivity, text-editor.

## Combined YAML source

View the package source record on GitHub. [combined/amp.yml](https://github.com/mxcl/pkgdb/blob/main/combined/amp.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
