# 使用 Homebrew, apt 安装 ascii2binary

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

## 安装

```sh
sudo av install brew:ascii2binary
```

其他安装命令:

### macOS

- Homebrew (100%):

```sh
brew install ascii2binary
```

  证据: local Homebrew formula metadata

### Linux

- Debian apt (92%):

```sh
sudo apt install ascii2binary
```

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

## 软件包事实

- **软件包键:** brew:ascii2binary
- **软件包管理器:** Homebrew
- **版本:** 2.14
- **来源摘要:** Converting Text to Binary and Back
- **主页:** <https://billposer.org/Software/a2b.html>
- **已生成:** 2026-08-03T19:37:03+00:00

## 可执行文件

- ascii2binary (别名)
- binary2ascii (别名)

## 安装行为

- Bottle: 不可用

## 版本和新鲜度

- 页面生成时间: 2026-08-03
- 管理器版本: 2.14
## 项目历史与用法

ascii2binary is a pair of C/POSIX command-line programs, `ascii2binary` and `binary2ascii`, for converting between textual representations of numbers and raw binary values. The upstream page frames them as tools for test data generation, binary-file inspection, and glue between text-producing and binary-consuming programs.

### 项目历史

The official page documents version 2.14 as current, last modified on 2010-08-29. Its changelog starts at version 2.0, when support for long and long long integers was added, and version 2.1 added the companion `binary2ascii` command.

Later 2.x releases focused on practical conversion details: base selection, internationalization, endianness reporting, script-friendly exit codes, long double support, locale-aware thousands separators, type-size reporting, and packaging-oriented header-name cleanup.

### 采用历史

The upstream downloads section links not only tarballs but also Debian, FreeBSD FreshPorts, Open Package, OpenSolaris, SUSE RPM, and Ubuntu package pages. The input package facts show current Homebrew, Debian, and Ubuntu package-manager coverage.

### 使用方式

Users pipe whitespace-separated textual numbers into `ascii2binary` with flags selecting base and type, then pipe binary data into `binary2ascii` to inspect or reformat it. The official examples show hexadecimal-to-binary conversion, binary-to-hex/binary display, floating-point inspection, width and zero-padding controls, and locale conversion from German to American English number formatting.

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

This is a classic small Unix filter package: narrow purpose, POSIX C implementation, man pages, no credentials, no runtime config, and behavior that matters in scripts. Its fine-grained exit codes and locale/type-size options are the sort of details downstream users notice when a converter becomes part of test fixtures or data pipelines.

### 时间线

- 2007-02: Official ascii2binary man page timestamp.
- 2.0: Adds support for long and long long integers.
- 2.1: Adds binary2ascii to the package.
- 2.3: Programs become fully internationalized with a French translation.
- 2.7: Exit codes are redefined for script-friendly error classes.
- 2.11: Locale-aware numeric conversion is added.
- 2010-08: Official page lists version 2.14 as current and last modified.

### Related projects

- strtod, strtoll, and strtoull are the C library conversion functions named in the official man page.
- Downstream package links on the official page include Debian, FreeBSD FreshPorts, Open Package, OpenSolaris, SUSE RPMs, and Ubuntu.

### 来源

- <http://billposer.org/Software/Ascii2BinaryChangeLog.html>
- <http://billposer.org/Software/ascii2binary_man.html>
- <https://billposer.org/Software/a2b.html>


## 安全说明

narrow executable package without higher-risk signals.

- **Geiger 风险:** 绿色 / 低
- narrow executable package without higher-risk signals

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

- Debian apt - ascii2binary - 2.14-1.1+b1: normalized package name match | Debian stable package indexes: ascii2binary from https://deb.debian.org/debian/dists/stable/main/binary-amd64/Packages.xz | Convert between ASCII, hexadecimal and binary representations | http://billposer.org/Software/a2b.html
- Ubuntu apt - ascii2binary - 2.14-1.1: normalized package name match | Ubuntu 24.04 LTS package indexes: ascii2binary from https://archive.ubuntu.com/ubuntu/dists/noble/universe/binary-amd64/Packages.gz | Convert between ASCII, hexadecimal and binary representations | http://billposer.org/Software/a2b.html


## Combined YAML source

View the package source record on GitHub. [combined/ascii2binary.yml](https://github.com/mxcl/pkgdb/blob/main/combined/ascii2binary.yml)


## 来源

- pkg.so package database
- Geiger risk classifier
- curated package history
- pkgdb category and tag curation
- external package-manager database matches
- cross-ecosystem install command graph
