# 使用 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
- **版本:** 2.4.2
- **来源摘要:** Next-generation plugin manager for zsh
- **主页:** <https://github.com/zplug/zplug/>
- **仓库:** <https://github.com/zplug/zplug>
- **已生成:** 2026-08-03T19:37:03+00:00

## 可执行文件

- zplug-env (别名)

## 安装行为

- Bottle: 不可用

## 版本和新鲜度

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

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

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

- 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


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