# 使用 Homebrew, apt, Nix 安装 bar

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

## 安装

```sh
sudo av install brew:bar
```

其他安装命令:

### macOS

- Homebrew (100%):

```sh
brew install bar
```

  证据: local Homebrew formula metadata

### Linux

- Debian apt (92%):

```sh
sudo apt install bar
```

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

- Nix (92%):

```sh
nix profile install nixpkgs#bar
```

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

## 软件包事实

- **软件包键:** brew:bar
- **软件包管理器:** Homebrew
- **软件包管理器页面:** <https://formulae.brew.sh/formula/bar>
- **版本:** 1.4
- **来源摘要:** Provide progress bars for shell scripts
- **主页:** <http://www.theiling.de/projects/bar.html>
- **上游文档:** <http://www.theiling.de/projects/bar.html>
- **许可证:** Zlib
- **源码归档:** <http://www.theiling.de/downloads/bar-1.4-src.tar.bz2>
- **最后更新:** 2026-05-19T13:03:28-04:00
- **已生成:** 2026-07-08T07:18:31+00:00

## 可执行文件

- bar (cli)
- bar (别名)

## 安装行为

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

## 版本和新鲜度

- 页面生成时间: 2026-07-08
- 管理器版本: 1.4
- 管理器更新时间: 2026-05-19
- 本地数据: OK
- 上游仓库: http://www.theiling.de/projects/bar.html
- 信息: Release/tag comparison is only available for GitHub repositories.
## 项目历史与用法

bar is a small Bourne-shell utility that behaves like cat while showing an ASCII progress bar, aimed at portable Unix installation and scripting contexts.

### 项目历史

Henrik Theiling's project page frames bar as deliberately minimal shell code that needs no compilation and works across sh, ash, ksh, zsh, bash, and related Bourne-style shells. The design goal is portability first: when progress display cannot be supported safely, the script is intended to fall back toward plain cat behavior.

The upstream change log records a compact evolution from version 1.0's initial release through 1.1 percentage and terminal-width support, 1.2 robustness fixes across shells and systems, 1.3 feature additions such as ETA and configurable sizing, and 1.4 bug fixes.

### 采用历史

bar's adoption is narrow but very Unix-shaped: it appears in Homebrew, Debian, Ubuntu, and Nix package metadata as a tiny helper for shell scripts rather than as a large standalone application.

### 使用方式

The typical use is to pipe or copy data while presenting a text progress indicator in an install script or other shell workflow. Its upstream page emphasizes embedding or reusing the script body in portable installers.

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

bar is interesting because it solves a common packaging-era problem without a compiled dependency, curses UI, or modern shell assumptions. It is the sort of small, old-school utility that package managers preserve because it remains useful in constrained Unix environments.

### 时间线

- Version 1.0: Initial beta release.
- Version 1.1: Adds percentage display and terminal-width detection.
- Version 1.2: Focuses on robustness across Bourne shells and operating systems.
- Version 1.3.1: Adds ETA, quiet mode, size overrides, and script-dumping features after a broken 1.3 prerelease.
- Version 1.4: Stable bug-fix release.

### Related projects

- bar overlaps with cat, dd, pv, and shell progress-bar snippets, but its upstream niche is stricter portability and embeddability in Bourne-shell install scripts.

### 来源

- <http://www.theiling.de/projects/bar.html>
- source_facts.description
- source_facts.package-manager


## 安全说明

generalized runtime or code generation signal.

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

## 源数据库详情

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

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

- Debian apt - bar - 1.11.1-4: normalized package name match | Debian stable package indexes: bar from https://deb.debian.org/debian/dists/stable/main/binary-amd64/Packages.xz | Show information about a data transfer
- Nix - bar: normalized package name match | nixpkgs package indexes: pkgs/by-name/ba/bar/package.nix from https://api.github.com/repos/NixOS/nixpkgs/git/trees/master?recursive=1
- Ubuntu apt - bar - 1.11.1-4: normalized package name match | Ubuntu 24.04 LTS package indexes: bar from https://archive.ubuntu.com/ubuntu/dists/noble/universe/binary-amd64/Packages.gz | Show information about a data transfer


## 相关链接

- [Secret-risk packages](https://www.automicvault.com/zh-hans/pkg/secret-risk-packages/) - Has protected-tool coverage, approval-gate, or non-low Geiger security signals.
- [Terminal utility packages](https://www.automicvault.com/zh-hans/pkg/terminal-utilities/) - Matched terminal and command-line workflow metadata.
- [Text processing packages](https://www.automicvault.com/zh-hans/pkg/text-processing-tools/) - Matched text, document, or structured-data processing metadata.
- [Developer build packages](https://www.automicvault.com/zh-hans/pkg/developer-build-tools/) - Matched build, compiler, generator, or developer workflow metadata.
- [fish](https://www.automicvault.com/zh-hans/pkg/brew/fish/) - Shares av.db curated category or tags: cli, developer-tools, scripting, shell.
- [xonsh](https://www.automicvault.com/zh-hans/pkg/brew/xonsh/) - Shares av.db curated category or tags: cli, developer-tools, scripting, shell.
- [zsh](https://www.automicvault.com/zh-hans/pkg/brew/zsh/) - Shares av.db curated category or tags: cli, developer-tools, scripting, shell.
- [aliae](https://www.automicvault.com/zh-hans/pkg/brew/aliae/) - Shares av.db curated category or tags: cli, developer-tools, shell.
- [checkbashisms](https://www.automicvault.com/zh-hans/pkg/brew/checkbashisms/) - Shares av.db curated category or tags: cli, developer-tools, shell.
- [desk](https://www.automicvault.com/zh-hans/pkg/brew/desk/) - Shares av.db curated category or tags: cli, developer-tools, shell.
- [fizsh](https://www.automicvault.com/zh-hans/pkg/brew/fizsh/) - Shares av.db curated category or tags: cli, developer-tools, shell.
- [mcfly](https://www.automicvault.com/zh-hans/pkg/brew/mcfly/) - Shares av.db curated category or tags: cli, developer-tools, shell.

## Combined YAML source

View the package source record on GitHub. [combined/bar.yml](https://github.com/automic-vault/db/blob/main/combined/bar.yml)


## 来源

- Nucleus package database
- Geiger risk classifier
- package-page enrichment
- curated package history
- package version freshness
- av.db category and tag curation
- package relationship graph
- external package-manager database matches
- cross-ecosystem install command graph
