# 安装 bash-completion

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

## 安装

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

其他安装命令:

### macOS

- Homebrew (100%):

```sh
brew install bash-completion
```

  证据: local Homebrew formula metadata

- MacPorts (94%):

```sh
sudo port install bash-completion
```

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

### Linux

- apk (92%):

```sh
sudo apk add bash-completion
```

  证据: Alpine Linux edge package indexes: bash-completion from https://dl-cdn.alpinelinux.org/alpine/edge/main/x86_64/APKINDEX.tar.gz

- Debian apt (92%):

```sh
sudo apt install bash-completion
```

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

- dnf (92%):

```sh
sudo dnf install bash-completion
```

  证据: Fedora Rawhide package metadata: bash-completion from https://dl.fedoraproject.org/pub/fedora/linux/development/rawhide/Everything/x86_64/os/repodata/13ee7b80cb813542594d4235c4a0b8695435d5ecf23dd3580bc7515ae1b6180d-primary.xml.zst

- Nix (92%):

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

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

- pacman (92%):

```sh
sudo pacman -S bash-completion
```

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

- zypper (92%):

```sh
sudo zypper install bash-completion
```

  证据: openSUSE Tumbleweed package metadata: bash-completion from https://download.opensuse.org/tumbleweed/repo/oss/repodata/155b97171d05e27afd950b6fe0d55513ff38f4597110664535bceedc680bbe6fd459f0733718dcc21dcf0efc7c8250fd1390c73d4790b42e62fb2c16a87242e5-primary.xml.zst

## 软件包事实

- **软件包键:** brew:bash-completion
- **软件包管理器:** Homebrew
- **软件包管理器页面:** <https://formulae.brew.sh/formula/bash-completion>
- **版本:** 1.3
- **来源摘要:** Programmable completion for Bash 3.2
- **主页:** <https://salsa.debian.org/debian/bash-completion>
- **上游文档:** <https://salsa.debian.org/debian/bash-completion>
- **许可证:** GPL-2.0-or-later
- **源码归档:** <https://src.fedoraproject.org/repo/pkgs/bash-completion/bash-completion-1.3.tar.bz2/a1262659b4bbf44dc9e59d034de505ec/bash-completion-1.3.tar.bz2>
- **更新:** 2025-10-15T17:02:02+01:00
- **生成来源:** 2026-05-26T22:45:13+00:00

## 安装行为

- post-install 钩子: 未定义
- Caveats: Add the following line to your ~/.bash_profile: [[ -r "$HOMEBREW_PREFIX/etc/profile.d/bash_completion.sh" ]] && . "$HOMEBREW_PREFIX/etc/profile.d/bash_completion.sh" This formula is mainly for use with Bash 3. If you are using Homebrew's Bash or your system Bash is at least version 4.2, then you should install `bash-completion@2` instead.
- Bottle: 可用 于 arm64_big_sur, arm64_linux, arm64_monterey, arm64_sequoia, arm64_sonoma, arm64_tahoe, arm64_ventura, big_sur, catalina, monterey, sonoma, ventura

## 新鲜度

- 页面生成时间: 2026-05-26
- 管理器版本: 1.3
- 管理器更新时间: 2025-10-15
- 本地数据: ok
- 上游仓库: https://salsa.debian.org/debian/bash-completion
- notice: The package-manager record has not changed recently.
- info: Release/tag comparison is only available for GitHub repositories.

## 安全说明

no executable entrypoint in the package index.

- **Geiger 风险:** green / low
- no executable entrypoint in the package index

## 相关链接

- [tt](https://www.automicvault.com/pkg/brew/tt/) - Popular package that depends on this formula.
- [ry](https://www.automicvault.com/pkg/brew/ry/) - Popular package that depends on this formula.
- [bash-completion@2](https://www.automicvault.com/pkg/brew/bash-completion-2/) - Package name indicates the same formula family.

## 来源

- Nucleus package database
- Geiger risk classifier
- package-page enrichment
- package version freshness
- package relationship graph
- cross-ecosystem install command graph
