# 使用 Homebrew, apk, apt, dnf, MacPorts, Nix, pacman, zypper 安装 gnu-barcode

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

## 安装

```sh
sudo av install brew:gnu-barcode
```

其他安装命令:

### macOS

- Homebrew (100%):

```sh
brew install gnu-barcode
```

  证据: local Homebrew formula metadata

- MacPorts (94%):

```sh
sudo port install barcode
```

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

### Linux

- apk (92%):

```sh
sudo apk add barcode
```

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

- Debian apt (92%):

```sh
sudo apt install barcode
```

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

- dnf (92%):

```sh
sudo dnf install barcode
```

  证据: Fedora Rawhide package metadata: barcode from https://dl.fedoraproject.org/pub/fedora/linux/development/rawhide/Everything/x86_64/os/repodata/07190dc5ae9f35ae73866675fed6d95fe6e8d9fe22c9d7cdf85862cb2ed24a4c-primary.xml.zst

- Nix (92%):

```sh
nix profile install nixpkgs#barcode
```

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

- pacman (92%):

```sh
sudo pacman -S barcode
```

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

- zypper (92%):

```sh
sudo zypper install barcode
```

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

## 软件包事实

- **软件包键:** brew:gnu-barcode
- **软件包管理器:** Homebrew
- **版本:** 0.99
- **来源摘要:** Convert text strings to printed bars
- **主页:** <https://www.gnu.org/software/barcode/>
- **已生成:** 2026-08-03T19:37:03+00:00

## 可执行文件

- barcode (别名)
- sample (别名)

## 安装行为

- Bottle: 不可用

## 版本和新鲜度

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

GNU Barcode is a GNU command-line tool and library for turning text strings into printable barcode output, originally centered on PostScript and Encapsulated PostScript and later extended with output formats such as SVG and PCL.

### 项目历史

The project was authored and maintained in the GNU ecosystem by Alessandro Rubini. Its README describes a package built to cover common barcode creation needs with a conventional printer, shipping both a library and a command-line front end so applications and scripts can generate barcode symbols.

The 0.99 NEWS entry records later maintenance work including internationalization, GPLv3-or-later licensing, SVG support, and PCL output. That makes GNU Barcode a small but durable example of GNU's printer-and-text utility culture.

### 采用历史

GNU Barcode's upstream README notes distribution through ftp.gnu.org and GNU mirrors, a Windows port through GnuWin32, FreeBSD ports packaging, and downstream use by GLabels. Its adoption pattern is therefore typical of focused Unix utilities: not a broad platform, but a reusable program and library that other label-printing tools could embed.

### 使用方式

Practitioners use the `barcode` command to read strings from the command line or standard input and emit printable barcode pages or EPS fragments. It supports common product and book codes including UPC, EAN, ISBN, CODE39, and related formats, with sizing and label-table options useful for sticker sheets and print workflows.

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

Package maintainers care about GNU Barcode because it exposes a narrow, scriptable function with few moving parts: encode strings, select a symbology, and produce printer-friendly output. Its library/front-end split also made it useful as a dependency for label software rather than only as a standalone command.

### 时间线

- 1999: GNU Barcode web page copyright record begins.
- 2011: GNU Barcode 0.99 NEWS records i18n, GPLv3-or-later, SVG, and PCL work.
- 2013: 0.99 NEWS copyright update recorded by the Free Software Foundation.

### Related projects

- GLabels used GNU Barcode internally according to the upstream README.
- Bookland.py is discussed by the README as a related ISBN-oriented barcode program.
- GnuWin32 maintained a Windows port listed by upstream.

### 来源

- <https://git.savannah.gnu.org/cgit/barcode.git/plain/NEWS>
- <https://git.savannah.gnu.org/cgit/barcode.git/plain/README>
- <https://www.gnu.org/software/barcode/>


## 安全说明

narrow executable package without higher-risk signals.

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

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

- MacPorts - barcode: installed executable or alias match | MacPorts ports tree: textproc/barcode/Portfile from https://api.github.com/repos/macports/macports-ports/git/trees/master?recursive=1
- Debian apt - barcode - 0.99-9: installed executable or alias match | Debian stable package indexes: barcode from https://deb.debian.org/debian/dists/stable/main/binary-amd64/Packages.xz | Utility for barcode generation | https://www.gnu.org/software/barcode/
- Nix - barcode: installed executable or alias match | nixpkgs package indexes: pkgs/by-name/ba/barcode/package.nix from https://api.github.com/repos/NixOS/nixpkgs/git/trees/master?recursive=1
- Ubuntu apt - barcode - 0.99-7: installed executable or alias match | Ubuntu 24.04 LTS package indexes: barcode from https://archive.ubuntu.com/ubuntu/dists/noble/universe/binary-amd64/Packages.gz | Utility for barcode generation | https://www.gnu.org/software/barcode/
- apk - barcode - 0.99-r1: installed executable or alias match | Alpine Linux edge package indexes: barcode from https://dl-cdn.alpinelinux.org/alpine/edge/community/x86_64/APKINDEX.tar.gz | Convert text strings to printed bars in various standards | https://www.gnu.org/software/barcode/
- dnf - barcode - 0.98-55.fc45: installed executable or alias match | Fedora Rawhide package metadata: barcode from https://dl.fedoraproject.org/pub/fedora/linux/development/rawhide/Everything/x86_64/os/repodata/07190dc5ae9f35ae73866675fed6d95fe6e8d9fe22c9d7cdf85862cb2ed24a4c-primary.xml.zst | Generates barcodes from text strings | https://www.gnu.org/software/barcode/
- dnf - barcode-devel - 0.98-55.fc45: installed executable or alias match | Fedora Rawhide package metadata: barcode-devel from https://dl.fedoraproject.org/pub/fedora/linux/development/rawhide/Everything/x86_64/os/repodata/07190dc5ae9f35ae73866675fed6d95fe6e8d9fe22c9d7cdf85862cb2ed24a4c-primary.xml.zst | Header files and libraries for barcode development | https://www.gnu.org/software/barcode/
- pacman - barcode - 0.99-6: installed executable or alias match | Arch Linux sync databases: barcode from https://geo.mirror.pkgbuild.com/extra/os/x86_64/extra.db.tar.gz | A tool to convert text strings to printed bars | https://www.gnu.org/software/barcode/
- zypper - barcode - 0.99-12.6: installed executable or alias match | openSUSE Tumbleweed package metadata: barcode from https://download.opensuse.org/tumbleweed/repo/oss/repodata/50b07339cb64c8ed4091bdbabddadc1ff5737b090e478818a195b40d8a3292861a879139b4a3987c31109699fde9fbf4a716367ddf4eef77da75f96e3193d6ed-primary.xml.zst | Text-Mode Barcode Creation Utility | https://www.gnu.org/software/barcode
- zypper - barcode-devel - 0.99-12.6: installed executable or alias match | openSUSE Tumbleweed package metadata: barcode-devel from https://download.opensuse.org/tumbleweed/repo/oss/repodata/50b07339cb64c8ed4091bdbabddadc1ff5737b090e478818a195b40d8a3292861a879139b4a3987c31109699fde9fbf4a716367ddf4eef77da75f96e3193d6ed-primary.xml.zst | Text-Mode Barcode Creation Utility - Development files | https://www.gnu.org/software/barcode


## Combined YAML source

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