# 使用 Homebrew, apt, Nix 安装 zplug

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

## 安装

```sh
sudo av install brew:zplug
```

其他安装命令:

### macOS

- Homebrew (100%):

```sh
brew install zplug
```

  证据: local Homebrew formula metadata

### Linux

- Debian apt (92%):

```sh
sudo apt install zplug
```

  证据: Debian stable package indexes: zplug from https://deb.debian.org/debian/dists/stable/main/binary-amd64/Packages.xz

- Nix (92%):

```sh
nix profile install nixpkgs#zplug
```

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

## 软件包事实

- **软件包键:** brew:zplug
- **软件包管理器:** Homebrew
- **软件包管理器页面:** <https://formulae.brew.sh/formula/zplug>
- **版本:** 2.4.2
- **来源摘要:** Next-generation plugin manager for zsh
- **主页:** <https://github.com/zplug/zplug/>
- **仓库:** <https://github.com/zplug/zplug>
- **上游文档:** <https://github.com/zplug/zplug/>
- **许可证:** MIT
- **源码归档:** <https://github.com/zplug/zplug/archive/refs/tags/2.4.2.tar.gz>
- **已生成:** 2026-08-04T22:13:35+00:00

## 可执行文件

- zplug-env (cli)
- zplug-env (别名)

## macOS 提供的库

- zsh

## 安装行为

- post-install 钩子: 未定义
- 注意事项: In order to use zplug, please add the following to your .zshrc: export ZPLUG_HOME=$HOMEBREW_PREFIX/opt/zplug source $ZPLUG_HOME/init.zsh
- Bottle: 可用 于 all

## 版本和新鲜度

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

Zplug is a Zsh plugin manager that manages plugins, commands, themes, release binaries, gists, and framework assets from sources such as GitHub, Bitbucket, oh-my-zsh, prezto, and local directories.

### 项目历史

The public `zplug/zplug` repository was created in November 2015. The README describes it as a next-generation Zsh plugin manager with parallel installation and update, lazy loading, branch/tag/commit locking, hooks, dependencies, and an interactive interface through tools such as fzf and peco.

Zplug grew during the era when Zsh users were moving beyond monolithic framework installs toward declarative plugin lists in `.zshrc`. Its tag-based syntax let users mix plugins, themes, commands, GitHub release assets, oh-my-zsh plugins, prezto modules, Bitbucket repositories, gists, and local code in one loader.

### 采用历史

GitHub metadata showed more than 6,000 stars by July 2026, making Zplug a well-known member of the Zsh plugin-manager wave. Official releases were active through the 2.x series in 2016 and 2017, and the batch package metadata lists Homebrew, Debian, Ubuntu, and Nix packaging.

Its adoption was helped by compatibility rather than exclusivity: Zplug could consume oh-my-zsh and prezto assets, so users could keep familiar plugin sources while moving to a more explicit package-management style.

### 使用方式

Typical use is to source `init.zsh`, declare packages with `zplug` lines in `.zshrc`, run `zplug check` and `zplug install` when needed, then `zplug load` to source plugins or add commands to `$PATH`. The README examples cover frozen packages, GitHub release binaries, conditional loads, build hooks, dependencies, themes, and local plugins.

The command set includes install, load, list, update, check, status, clean, clear, and info, giving Zsh users a small package-manager vocabulary inside their shell startup file.

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

Zplug matters because it treats shell customization like a package graph rather than a pile of sourced scripts. For package nerds, it captures a specific moment in dotfile culture: Zsh users wanted faster startup, lockable revisions, parallel installs, and the ability to mix plugin ecosystems without adopting one big framework.

### 时间线

- 2015-11-21: The public `zplug/zplug` repository is created.
- 2016: Zplug 2.x releases ship regularly, including 2.1.0, 2.2.0, and 2.3.x.
- 2017-12-28: Zplug 2.4.2 is published on GitHub.
- 2026: GitHub metadata still shows an active repository with thousands of stars and package-manager availability in the batch metadata.

### Related projects

- oh-my-zsh and prezto are plugin/theme ecosystems Zplug can consume.
- antigen is an older Zsh plugin manager explicitly contrasted in the README.
- fzf, peco, and zaw are optional interactive selectors referenced by Zplug.

### 来源

- <https://api.github.com/repos/zplug/zplug>
- <https://github.com/zplug/zplug>
- <https://github.com/zplug/zplug/releases>
- input.json 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:** zplug
- **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

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

- Debian apt - zplug - 2.4.2-2: normalized package name match | Debian stable package indexes: zplug from https://deb.debian.org/debian/dists/stable/main/binary-amd64/Packages.xz | next-generation plugin manager for zsh | https://github.com/zplug/zplug
- Nix - zplug: normalized package name match | nixpkgs package indexes: pkgs/by-name/zp/zplug/package.nix from https://api.github.com/repos/NixOS/nixpkgs/git/trees/master?recursive=1
- Ubuntu apt - zplug - 2.4.2-2: normalized package name match | Ubuntu 24.04 LTS package indexes: zplug from https://archive.ubuntu.com/ubuntu/dists/noble/universe/binary-amd64/Packages.gz | next-generation plugin manager for zsh | https://github.com/zplug/zplug


## 相关链接

- [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.
- [sheldon](https://pkg.so/zh-hans/brew/sheldon/) - Shares pkgdb curated category or tags: cli, developer-tools, plugin-manager, shell, zsh.
- [starship](https://pkg.so/zh-hans/brew/starship/) - Shares pkgdb curated category or tags: cli, developer-tools, shell, terminal.
- [oh-my-posh](https://pkg.so/zh-hans/brew/oh-my-posh/) - Shares pkgdb curated category or tags: cli, developer-tools, shell, terminal.
- [mcfly](https://pkg.so/zh-hans/brew/mcfly/) - Shares pkgdb curated category or tags: cli, developer-tools, shell, zsh.
- [jump](https://pkg.so/zh-hans/brew/jump/) - Shares pkgdb curated category or tags: cli, developer-tools, shell, zsh.
- [tpack](https://pkg.so/zh-hans/brew/tpack/) - Shares pkgdb curated category or tags: cli, developer-tools, plugin-manager, terminal.
- [xxh](https://pkg.so/zh-hans/brew/xxh/) - Shares pkgdb curated category or tags: cli, developer-tools, shell, terminal.
- [zsh-patina](https://pkg.so/zh-hans/brew/zsh-patina/) - Shares pkgdb curated category or tags: cli, developer-tools, terminal, zsh.

## Combined YAML source

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