# 使用 Homebrew, apk, apt, dnf, MacPorts, Nix, pacman, zypper 安装 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/210a2053c8e007daf9ae39c2a21daaed9b2ddd07d63ecffa597050361e73650c-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/50b07339cb64c8ed4091bdbabddadc1ff5737b090e478818a195b40d8a3292861a879139b4a3987c31109699fde9fbf4a716367ddf4eef77da75f96e3193d6ed-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>
- **最后更新:** 2026-06-19T12:30:02-07:00
- **已生成:** 2026-08-04T22:13:35+00:00

## 安装行为

- post-install 钩子: 未定义
- 注意事项: 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-08-04
- 管理器版本: 1.3
- 管理器更新时间: 2026-06-19
- 本地数据: OK
- 上游仓库: https://salsa.debian.org/debian/bash-completion
- 信息: Release/tag comparison is only available for GitHub repositories.

## 安全说明

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


## 源数据库详情

- **Source Database:** Homebrew formula API
- **Tap:** homebrew/core
- **Full Name:** bash-completion
- **Aliases:** bash-completion@1
- **Version Scheme:** 0
- **Revision:** 3
- **Conflicts With:** bash-completion@2, medusa
- **Bottle Stable Root URL:** <https://ghcr.io/v2/homebrew/core>
- **Deprecated:** no
- **Disabled:** no
- **Keg Only:** no
- **URL Keys:** stable

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

- Debian apt - bash-completion - 1:2.16.0-7: normalized package name match | Debian stable package indexes: bash-completion from https://deb.debian.org/debian/dists/stable/main/binary-amd64/Packages.xz | programmable completion for the bash shell | https://github.com/scop/bash-completion
- Nix - bash-completion: normalized package name match | nixpkgs package indexes: pkgs/by-name/ba/bash-completion/package.nix from https://api.github.com/repos/NixOS/nixpkgs/git/trees/master?recursive=1
- Ubuntu apt - bash-completion - 1:2.11-8: normalized package name match | Ubuntu 24.04 LTS package indexes: bash-completion from https://archive.ubuntu.com/ubuntu/dists/noble/main/binary-amd64/Packages.gz | programmable completion for the bash shell | https://github.com/scop/bash-completion
- apk - bash-completion - 2.17.0-r1: normalized package name match | Alpine Linux edge package indexes: bash-completion from https://dl-cdn.alpinelinux.org/alpine/edge/main/x86_64/APKINDEX.tar.gz | Command-line tab-completion for bash | https://github.com/scop/bash-completion
- apk - bash-completion-dev - 2.17.0-r1: normalized package name match | Alpine Linux edge package indexes: bash-completion-dev from https://dl-cdn.alpinelinux.org/alpine/edge/main/x86_64/APKINDEX.tar.gz | Command-line tab-completion for bash (development files) | https://github.com/scop/bash-completion
- apk - bash-completion-doc - 2.17.0-r1: normalized package name match | Alpine Linux edge package indexes: bash-completion-doc from https://dl-cdn.alpinelinux.org/alpine/edge/main/x86_64/APKINDEX.tar.gz | Command-line tab-completion for bash (documentation) | https://github.com/scop/bash-completion
- dnf - bash-completion - 2.18-1.fc45: normalized package name match | Fedora Rawhide package metadata: bash-completion from https://dl.fedoraproject.org/pub/fedora/linux/development/rawhide/Everything/x86_64/os/repodata/210a2053c8e007daf9ae39c2a21daaed9b2ddd07d63ecffa597050361e73650c-primary.xml.zst | Programmable completion for Bash | https://github.com/scop/bash-completion
- dnf - bash-completion-devel - 2.18-1.fc45: normalized package name match | Fedora Rawhide package metadata: bash-completion-devel from https://dl.fedoraproject.org/pub/fedora/linux/development/rawhide/Everything/x86_64/os/repodata/210a2053c8e007daf9ae39c2a21daaed9b2ddd07d63ecffa597050361e73650c-primary.xml.zst | Development files for bash-completion | https://github.com/scop/bash-completion
- pacman - bash-completion - 2.18.0-1: normalized package name match | Arch Linux sync databases: bash-completion from https://geo.mirror.pkgbuild.com/extra/os/x86_64/extra.db.tar.gz | Programmable completion for the bash shell | https://github.com/scop/bash-completion
- zypper - bash-completion - 2.12.0-6.3: normalized package name match | openSUSE Tumbleweed package metadata: bash-completion from https://download.opensuse.org/tumbleweed/repo/oss/repodata/50b07339cb64c8ed4091bdbabddadc1ff5737b090e478818a195b40d8a3292861a879139b4a3987c31109699fde9fbf4a716367ddf4eef77da75f96e3193d6ed-primary.xml.zst | Programmable Completion for Bash | https://github.com/scop/bash-completion/
- zypper - bash-completion-devel - 2.12.0-6.3: normalized package name match | openSUSE Tumbleweed package metadata: bash-completion-devel from https://download.opensuse.org/tumbleweed/repo/oss/repodata/50b07339cb64c8ed4091bdbabddadc1ff5737b090e478818a195b40d8a3292861a879139b4a3987c31109699fde9fbf4a716367ddf4eef77da75f96e3193d6ed-primary.xml.zst | The Configuration of Programmable Completion for Bash | https://github.com/scop/bash-completion/
- MacPorts - bash-completion: normalized package name match | MacPorts ports tree: sysutils/bash-completion/Portfile from https://api.github.com/repos/macports/macports-ports/git/trees/master?recursive=1


## 相关链接

- [Networking and protocol packages](https://pkg.so/zh-hans/networking-protocol-tools/) - Matched network, protocol, or remote-service metadata.
- [Homebrew utility packages](https://pkg.so/zh-hans/brew-utility-packages/) - Matched curated package taxonomy and local package facts.
- [tt](https://pkg.so/zh-hans/brew/tt/) - Popular package that depends on this formula.
- [ry](https://pkg.so/zh-hans/brew/ry/) - Popular package that depends on this formula.
- [bash-completion@2](https://pkg.so/zh-hans/brew/bash-completion-2/) - Package name indicates the same formula family.
- [bash](https://pkg.so/zh-hans/brew/bash/) - Package names and metadata indicate a similar tool family. Shared terms: bash.
- [bash-git-prompt](https://pkg.so/zh-hans/brew/bash-git-prompt/) - Package names and metadata indicate a similar tool family. Shared terms: bash.

## 来源

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