macOS
brew install zbarlocal Homebrew formula metadata
sudo port install zbarMacPorts ports tree · graphics/zbar/Portfile · 来源: api.github.com
安装
brew install zbarlocal Homebrew formula metadata
sudo port install zbarMacPorts ports tree · graphics/zbar/Portfile · 来源: api.github.com
sudo apk add zbarAlpine Linux edge package indexes · zbar · 来源: dl-cdn.alpinelinux.org
sudo dnf install zbarFedora Rawhide package metadata · zbar · 来源: dl.fedoraproject.org
nix profile install nixpkgs#zbarnixpkgs package indexes · pkgs/by-name/zb/zbar/package.nix · 来源: api.github.com
sudo pacman -S zbarArch Linux sync databases · zbar · 来源: geo.mirror.pkgbuild.com
sudo zypper install zbaropenSUSE Tumbleweed package metadata · zbar · 来源: download.opensuse.org
sudo apt install gir1.2-zbar-1.0Debian stable package indexes · gir1.2-zbar-1.0 · 来源: deb.debian.org
概览
Suite of barcodes-reading tools
历史
ZBar is an open-source C barcode and QR-code reader suite with command-line tools, camera and image scanners, GUI bindings, and language bindings used by desktop applications, scripts, and packaging ecosystems.
The project began as Zebra, with version 0.1 in 2007 supporting basic EAN-13 and UPC-A scanning from a webcam or stored image files through `zebracam` and `zebraimg`. The 0.7 release in 2009 finalized the name change to ZBar and added Python bindings.
ZBar expanded quickly in 2008-2009: releases added Code 128, Video4Linux2 support, more image formats, GTK/PyGTK/Qt widgets, EAN-8, Code 39, Interleaved 2 of 5, Windows command-line ports, and QR Code support in 0.10. The SourceForge site presented it as a suite for reading bar codes from video streams, image files, and raw intensity sensors.
After the old upstream line stalled, Mauro Carvalho Chehab created a LinuxTV-hosted fork. NEWS.md says 0.20 in 2017 was created because upstream had no version since 2009, and focused on modern Video4Linux2 support via libv4l2, Qt5 compatibility, and new zbarcam GUI applications.
The maintained 0.23 line modernized ZBar for newer libraries: Gtk2 or Gtk3, Python2 or Python3, GObject Introspection bindings, Windows DirectShow support, and continued command-line/library use.
ZBar became a common Unix packaging dependency because it is both a library and a tool suite. Distributions can ship `zbarimg` for scanning image files, `zbarcam` for webcams, development headers, and bindings used by Python, Perl, Ruby, Qt, GTK, and GObject-based applications.
Its adoption is especially visible in wrappers such as pyzbar and in distro packages that expose ZBar through GIR, Python, Qt, GTK, and CLI subpackages. That breadth kept the project relevant even when the original SourceForge release line slowed down.
The LinuxTV fork is an adoption story in itself: webcam APIs and GUI stacks changed under ZBar, so package maintainers needed a maintained upstream that could keep barcode scanning working on current kernels, desktops, Python versions, and Windows capture APIs.
Users run `zbarimg` against screenshots, photos, PDFs, or generated image files, or use `zbarcam` to scan a Video4Linux camera stream and print decoded symbols to standard output. Application developers link libzbar or use bindings when barcode recognition needs to be embedded in another program.
Supported symbologies across the project history include EAN/UPC variants, Code 128, Code 93, Code 39, Codabar, Interleaved 2 of 5, QR Code, and later SQ Code. The common packaging value is that a script or app can delegate messy image/camera barcode decoding to a small native library.
ZBar is package-nerd significant because it is a textbook survivor package: a small C library plus CLI tools, bindings across languages, GUI integrations, and a fork that exists largely to keep old useful functionality compiling and working on modern systems.
It also shows why package metadata can hide real complexity. A formula called `zbar` may look like a simple barcode tool, but downstreams care about webcam backends, image libraries, Python and GIR bindings, Qt/GTK optionality, Windows capture support, and security fixes for untrusted QR/image parsing.
安全态势
narrow executable package without higher-risk signals.
绿色 风险 · 低 置信度 · appliance
在无人值守的代理使用前,请检查该工具是否读取明文凭据、写入远程状态、发布制品或调用插件。
可执行文件
| 命令 | 类型 | 暴露范围 | 备注 |
|---|---|---|---|
zbarimg | 可执行文件 | 已索引可执行文件 | 从本地可执行文件索引发现。 |
新鲜度
这些信号区分页生成时间、软件包管理器活动和上游发布比较。只有存在证据 URL 和可比较版本时,才会提示版本落后。
安装元数据
| 软件包键 | brew:zbar |
|---|---|
| 版本 | 0.23.93 |
| 软件包管理器 | Homebrew |
| 主页 | https://linuxtv.org/downloads/zbar/ |
| 仓库 | https://github.com/mchehab/zbar |
| 最后更新 | 2026-07-13T10:42:34Z |
| Pulse | updated |
| Bottle | 未记录 |
| 服务 | 未声明 |
源数据库匹配
匹配项来自外部软件包管理器索引,并与本地 Automic Vault 软件包链接分开显示。
gir1.2-zbar-1.0 0.23.93-8
QR code / bar code scanner and decoder (introspection data)
https://github.com/mchehab/zbar
sudo apt install gir1.2-zbar-1.0libbarcode-zbar-perl 0.23.93-8
QR code / bar code scanner and decoder (Perl bindings)
https://github.com/mchehab/zbar
sudo apt install libbarcode-zbar-perllibzbar-dev 0.23.93-8
QR code / bar code scanner and decoder (development)
https://github.com/mchehab/zbar
sudo apt install libzbar-devlibzbar0t64 0.23.93-8
QR code / bar code scanner and decoder (library)
https://github.com/mchehab/zbar
sudo apt install libzbar0t64libzbargtk-dev 0.23.93-8
QR code / bar code scanner and decoder (GTK+ bindings development)
https://github.com/mchehab/zbar
sudo apt install libzbargtk-devlibzbargtk0t64 0.23.93-8
QR code / bar code scanner and decoder (GTK+ bindings)
https://github.com/mchehab/zbar
sudo apt install libzbargtk0t64libzbarqt-dev 0.23.93-8
QR code / bar code scanner and decoder (Qt binding development)
https://github.com/mchehab/zbar
sudo apt install libzbarqt-devlibzbarqt0t64 0.23.93-8
QR code / bar code scanner and decoder (Qt binding)
https://github.com/mchehab/zbar
sudo apt install libzbarqt0t64python3-zbar 0.23.93-8
QR code / bar code scanner and decoder (Python bindings)
https://github.com/mchehab/zbar
sudo apt install python3-zbarzbar-tools 0.23.93-8
QR code / bar code scanner and decoder (utilities)
https://github.com/mchehab/zbar
sudo apt install zbar-toolszbarcam-gtk 0.23.93-8
QR code / bar code scanner and decoder (Gtk camera tool)
https://github.com/mchehab/zbar
sudo apt install zbarcam-gtkzbarcam-qt 0.23.93-8
QR code / bar code scanner and decoder (Qt camera tool)
https://github.com/mchehab/zbar
sudo apt install zbarcam-qtzbar
nix profile install nixpkgs#zbargir1.2-zbar-1.0 0.23.93-4build3
QR code / bar code scanner and decoder (introspection data)
https://github.com/mchehab/zbar
sudo apt install gir1.2-zbar-1.0libbarcode-zbar-perl 0.23.93-4build3
QR code / bar code scanner and decoder (Perl bindings)
https://github.com/mchehab/zbar
sudo apt install libbarcode-zbar-perllibzbar-dev 0.23.93-4build3
QR code / bar code scanner and decoder (development)
https://github.com/mchehab/zbar
sudo apt install libzbar-dev来源线索
此页面由 av-web 从 scripts/generate-pkg-sqlite.py 生成的私有软件包 SQLite 工件提供。
View the package source record on GitHub.