# 使用 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
- **版本:** 0.7.1
- **来源摘要:** Text editor for your terminal
- **主页:** <https://amp.rs>
- **仓库:** <https://github.com/jmacdonald/amp>
- **已生成:** 2026-08-03T19:37:03+00:00

## 可执行文件

- amp (别名)

## 安装行为

- Bottle: 不可用

## 版本和新鲜度

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

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

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

- 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


## 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
- curated package history
- pkgdb category and tag curation
- external package-manager database matches
- cross-ecosystem install command graph
