# 使用 Homebrew, Nix, pacman 安装 bash-preexec

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

## 安装

```sh
sudo av install brew:bash-preexec
```

其他安装命令:

### macOS

- Homebrew (100%):

```sh
brew install bash-preexec
```

  证据: local Homebrew formula metadata

### Linux

- Nix (92%):

```sh
nix profile install nixpkgs#bash-preexec
```

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

- pacman (92%):

```sh
sudo pacman -S bash-preexec
```

  证据: Arch Linux sync databases: bash-preexec from https://geo.mirror.pkgbuild.com/extra/os/x86_64/extra.db.tar.gz

## 软件包事实

- **软件包键:** brew:bash-preexec
- **软件包管理器:** Homebrew
- **软件包管理器页面:** <https://formulae.brew.sh/formula/bash-preexec>
- **版本:** 0.6.0
- **来源摘要:** Nucleus package metadata for bash-preexec, from local Automic Vault package sources.
- **主页:** <https://github.com/rcaloras/bash-preexec>
- **仓库:** <https://github.com/rcaloras/bash-preexec>
- **许可证:** MIT
- **源码归档:** <https://github.com/rcaloras/bash-preexec/archive/refs/tags/0.6.0.tar.gz>
- **已生成:** 2026-07-08T07:18:31+00:00

## 安装行为

- post-install 钩子: 未定义
- 注意事项: Add the following line to your bash profile (e.g. ~/.bashrc, ~/.profile, or ~/.bash_profile) [ -f $HOMEBREW_PREFIX/etc/profile.d/bash-preexec.sh ] && . $HOMEBREW_PREFIX/etc/profile.d/bash-preexec.sh
- Bottle: 可用 于 all

## 版本和新鲜度

- 页面生成时间: 2026-07-08
- 管理器版本: 0.6.0
- 本地数据: OK
- 上游仓库: https://github.com/rcaloras/bash-preexec
- 检测到的最新版本: 0.6.0 (当前)
- 信息: No package-manager update timestamp was available.

## 安全说明

没有找到 bash-preexec 的匹配本地密钥处理 manifest。Nucleus 软件包元数据仍在此发布，以便未来覆盖拥有稳定的软件包 URL。


## 源数据库详情

- **Source Database:** Homebrew formula API
- **Tap:** homebrew/core
- **Full Name:** bash-preexec
- **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 - bash-preexec: normalized package name match | nixpkgs package indexes: pkgs/by-name/ba/bash-preexec/package.nix from https://api.github.com/repos/NixOS/nixpkgs/git/trees/master?recursive=1
- pacman - bash-preexec - 0.6.0-1: normalized package name match | Arch Linux sync databases: bash-preexec from https://geo.mirror.pkgbuild.com/extra/os/x86_64/extra.db.tar.gz | preexec and precmd functions for Bash just like Zsh | https://github.com/rcaloras/bash-preexec


## 相关链接

- [Source-control packages](https://www.automicvault.com/zh-hans/pkg/source-control-tools/) - Belongs to a source-control command family.
- [Networking and protocol packages](https://www.automicvault.com/zh-hans/pkg/networking-protocol-tools/) - Matched network, protocol, or remote-service metadata.
- [Homebrew utility packages](https://www.automicvault.com/zh-hans/pkg/brew-utility-packages/) - Matched curated package taxonomy and local package facts.
- [bash-completion@2](https://www.automicvault.com/zh-hans/pkg/brew/bash-completion-2/) - Package names and metadata indicate a similar tool family. Shared terms: bash.
- [bash-git-prompt](https://www.automicvault.com/zh-hans/pkg/brew/bash-git-prompt/) - Package names and metadata indicate a similar tool family. Shared terms: bash.
- [bash-language-server](https://www.automicvault.com/zh-hans/pkg/brew/bash-language-server/) - Package names and metadata indicate a similar tool family. Shared terms: bash.

## 来源

- package-page enrichment
- package version freshness
- package relationship graph
- external package-manager database matches
- cross-ecosystem install command graph
