# 使用 Homebrew, apk, Nix, pacman, zypper 安装 checkbashisms

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

## 安装

```sh
sudo av install brew:checkbashisms
```

其他安装命令:

### macOS

- Homebrew (100%):

```sh
brew install checkbashisms
```

  证据: local Homebrew formula metadata

### Linux

- apk (92%):

```sh
sudo apk add checkbashisms
```

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

- Nix (92%):

```sh
nix profile install nixpkgs#checkbashisms
```

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

- pacman (92%):

```sh
sudo pacman -S checkbashisms
```

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

- zypper (92%):

```sh
sudo zypper install checkbashisms
```

  证据: openSUSE Tumbleweed package metadata: checkbashisms from https://download.opensuse.org/tumbleweed/repo/oss/repodata/50b07339cb64c8ed4091bdbabddadc1ff5737b090e478818a195b40d8a3292861a879139b4a3987c31109699fde9fbf4a716367ddf4eef77da75f96e3193d6ed-primary.xml.zst

## 软件包事实

- **软件包键:** brew:checkbashisms
- **软件包管理器:** Homebrew
- **软件包管理器页面:** <https://formulae.brew.sh/formula/checkbashisms>
- **版本:** 2.26.10
- **来源摘要:** Checks for bashisms in shell scripts
- **主页:** <https://launchpad.net/ubuntu/+source/devscripts/>
- **上游文档:** <https://launchpad.net/ubuntu/+source/devscripts/>
- **许可证:** GPL-2.0-or-later
- **源码归档:** <https://deb.debian.org/debian/pool/main/d/devscripts/devscripts_2.26.10.tar.xz>
- **最后更新:** 2026-07-06T15:26:54Z
- **已生成:** 2026-08-04T22:13:35+00:00

## 可执行文件

- checkbashisms (cli)
- checkbashisms (别名)

## 安装行为

- post-install 钩子: 未定义
- Bottle: 可用 于 all

## 版本和新鲜度

- 页面生成时间: 2026-08-04
- 管理器版本: 2.26.10
- 管理器更新时间: 2026-07-06
- 本地数据: OK
- 上游仓库: https://launchpad.net/ubuntu/+source/devscripts/
- 信息: Release/tag comparison is only available for GitHub repositories.
## 项目历史与用法

checkbashisms is a Debian devscripts command that scans shell scripts for possible bash-specific constructs in scripts intended to run as /bin/sh.

### 项目历史

The Debian manpage says checkbashisms was originally written as a shell script by Yann Dirson and rewritten in Perl by Julian Gilbey. The current script says it is based on a Lintian scripts check with copyright ancestry from Richard Braakman, Josip Rodin, and Julian Gilbey.

### 采用历史

checkbashisms entered devscripts as a new script in the August 2003 changelog. Because devscripts is a standard Debian developer utility package, the command spread first through Debian and Ubuntu workflows, then through repackaging in Homebrew, Alpine, Nix, Arch, and openSUSE as recorded in the batch input.

### 使用方式

Users run `checkbashisms script ...` to warn about constructs not required by POSIX, with options for stricter POSIX checking, force-checking, lint-style editor output, extra context, and early failure.

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

checkbashisms is package-nerd folklore because it encodes Debian Policy and POSIX shell portability expectations into a tiny linter, catching scripts that accidentally require bash when packaged as /bin/sh-compatible.

### 时间线

- 1997: devscripts split off from debmake.
- 1998: Lintian-era scripts checks provide part of checkbashisms' ancestry.
- 2003: checkbashisms added to devscripts.
- 2018: Debian devscripts repository created on Salsa.
- 2026: devscripts 2.26.9 source published in Debian unstable.

### Related projects

- devscripts is the Debian utility collection that ships checkbashisms.
- Lintian is the source of the original check logic described in the script and manpage.
- dash, POSIX sh, Debian Policy, and bash are the compatibility context for the command.

### 来源

- <https://salsa.debian.org/debian/devscripts>
- <https://manpages.debian.org/testing/devscripts/checkbashisms.1.en.html>
- <https://sources.debian.org/data/main/d/devscripts/2.26.9/scripts/checkbashisms.1>
- <https://sources.debian.org/data/main/d/devscripts/2.26.9/scripts/checkbashisms.pl>
- <https://sources.debian.org/data/main/d/devscripts/2.26.9/debian/changelog>


## 安全说明

generalized runtime or code generation signal.

- **Geiger 风险:** yellow / 中
- generalized runtime or code generation signal

## 源数据库详情

- **Source Database:** Homebrew formula API
- **Tap:** homebrew/core
- **Full Name:** checkbashisms
- **Version Scheme:** 0
- **Revision:** 0
- **Bottle Stable Root URL:** <https://ghcr.io/v2/homebrew/core>
- **Deprecated:** no
- **Disabled:** no
- **Keg Only:** no
- **URL Keys:** stable

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

- Nix - checkbashisms: normalized package name match | nixpkgs package indexes: pkgs/by-name/ch/checkbashisms/package.nix from https://api.github.com/repos/NixOS/nixpkgs/git/trees/master?recursive=1
- apk - checkbashisms - 2.26.5-r1: normalized package name match | Alpine Linux edge package indexes: checkbashisms from https://dl-cdn.alpinelinux.org/alpine/edge/main/x86_64/APKINDEX.tar.gz | Debian developer scripts (checkbashisms) | https://tracker.debian.org/pkg/devscripts
- pacman - checkbashisms - 2.26.10-1: normalized package name match | Arch Linux sync databases: checkbashisms from https://geo.mirror.pkgbuild.com/extra/os/x86_64/extra.db.tar.gz | Debian script that checks for bashisms | https://tracker.debian.org/pkg/devscripts
- zypper - checkbashisms - 2.26.9-1.3: normalized package name match | openSUSE Tumbleweed package metadata: checkbashisms from https://download.opensuse.org/tumbleweed/repo/oss/repodata/50b07339cb64c8ed4091bdbabddadc1ff5737b090e478818a195b40d8a3292861a879139b4a3987c31109699fde9fbf4a716367ddf4eef77da75f96e3193d6ed-primary.xml.zst | Tool for checking /bin/sh scripts for possible bashisms | https://salsa.debian.org/debian/devscripts


## 相关链接

- [Secret-risk packages](https://pkg.so/zh-hans/secret-risk-packages/) - Has protected-tool coverage, approval-gate, or non-low Geiger security signals.
- [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.
- [shellcheck](https://pkg.so/zh-hans/brew/shellcheck/) - Shares pkgdb curated category or tags: cli, developer-tools, linting, shell.
- [shfmt](https://pkg.so/zh-hans/brew/shfmt/) - Shares pkgdb curated category or tags: cli, developer-tools, posix, shell.
- [shellspec](https://pkg.so/zh-hans/brew/shellspec/) - Shares pkgdb curated category or tags: cli, developer-tools, posix, shell.
- [shellharden](https://pkg.so/zh-hans/brew/shellharden/) - Shares pkgdb curated category or tags: cli, developer-tools, linting, shell.
- [starship](https://pkg.so/zh-hans/brew/starship/) - Shares pkgdb curated category or tags: cli, developer-tools, shell.
- [fish](https://pkg.so/zh-hans/brew/fish/) - Shares pkgdb curated category or tags: cli, developer-tools, shell.
- [zsh](https://pkg.so/zh-hans/brew/zsh/) - Shares pkgdb curated category or tags: cli, developer-tools, shell.
- [lcov](https://pkg.so/zh-hans/brew/lcov/) - Shares pkgdb curated category or tags: cli, developer-tools, perl.

## Combined YAML source

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