# Install zbar with Homebrew, apk, apt, dnf, MacPorts, Nix, pacman, zypper

Suite of barcodes-reading tools. Version 0.23.93 via Homebrew; verified 2026-07-06.

## Install

```sh
sudo av install brew:zbar
```

Additional install commands:

### macOS

- Homebrew (100%):

```sh
brew install zbar
```

  Evidence: local Homebrew formula metadata

- MacPorts (94%):

```sh
sudo port install zbar
```

  Evidence: MacPorts ports tree: graphics/zbar/Portfile from https://api.github.com/repos/macports/macports-ports/git/trees/master?recursive=1

### Linux

- apk (92%):

```sh
sudo apk add libzbar
```

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

- Debian apt (92%):

```sh
sudo apt install gir1.2-zbar-1.0
```

  Evidence: Debian stable package indexes: gir1.2-zbar-1.0 from https://deb.debian.org/debian/dists/stable/main/binary-amd64/Packages.xz

- dnf (92%):

```sh
sudo dnf install python3-zbar
```

  Evidence: Fedora Rawhide package metadata: python3-zbar from https://dl.fedoraproject.org/pub/fedora/linux/development/rawhide/Everything/x86_64/os/repodata/e5ca8ce900cd68f5419e1c39ae517343100b306336cbaeb70a3c153121d95094-primary.xml.zst

- Nix (92%):

```sh
nix profile install nixpkgs#zbar
```

  Evidence: nixpkgs package indexes: pkgs/by-name/zb/zbar/package.nix from https://api.github.com/repos/NixOS/nixpkgs/git/trees/master?recursive=1

- pacman (92%):

```sh
sudo pacman -S zbar
```

  Evidence: Arch Linux sync databases: zbar from https://geo.mirror.pkgbuild.com/extra/os/x86_64/extra.db.tar.gz

- zypper (92%):

```sh
sudo zypper install libzbar-devel
```

  Evidence: openSUSE Tumbleweed package metadata: libzbar-devel from https://download.opensuse.org/tumbleweed/repo/oss/repodata/be8d3611d25469107f32075a1697e69ec57a2b850b42348a658cc671ad5ec2b50760d02c3e59524d50da9a11d5be799bdaffba2e166e8ca8858512e3c0bd665d-primary.xml.zst

## Package facts

- **Package key:** brew:zbar
- **Package manager:** Homebrew
- **Package manager page:** <https://formulae.brew.sh/formula/zbar>
- **Version:** 0.23.93
- **Source summary:** Suite of barcodes-reading tools
- **Homepage:** <https://linuxtv.org/downloads/zbar/>
- **Repository:** <https://github.com/mchehab/zbar>
- **Upstream docs:** <https://zbar.sourceforge.net/>
- **License:** LGPL-2.1-only
- **Source archive:** <https://linuxtv.org/downloads/zbar/zbar-0.23.93.tar.bz2>
- **Last updated:** 2026-07-06T11:06:09Z
- **Generated:** 2026-07-08T07:18:31+00:00

## Executables

- zbarimg (cli)
- zbarimg (alias)

## Dependencies

- fontconfig
- freetype
- gettext
- glib
- imagemagick
- jpeg-turbo
- liblqr
- libomp
- libtool
- little-cms2

## Build dependencies

- pkgconf
- xmlto

## Install behavior

- Post-install hook: not defined
- Bottle: available on arm64_linux, arm64_sequoia, arm64_sonoma, arm64_tahoe, sonoma, x86_64_linux

## Freshness

- Page generated: 2026-07-08
- Package-manager version: 0.23.93
- Package-manager updated: 2026-07-06
- Local data: ok
- Upstream repository: https://linuxtv.org/downloads/zbar/
- info: Release/tag comparison is only available for GitHub repositories.
## Project history and usage

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.

### Project history

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.

### Adoption history

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.

### How it is used

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.

### Why package nerds care

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.

### Timeline

- 2007-03-24: First official Zebra 0.1 release, with basic webcam and image-file scanning.
- 2009-04-21: Version 0.7 finalized the project name change to ZBar and added Python bindings.
- 2009-08-31: Version 0.9 introduced Windows command-line application ports.
- 2009-10-23: Version 0.10 added QR Code support.
- 2017-04-11: Version 0.20 launched the LinuxTV fork after the old upstream line had no version since 2009.
- 2019: Versions 0.21 through 0.23 modernized compiler, Windows, Java, Gtk, Python, GIR, and DirectShow support.

### Related projects

- Related projects include pyzbar, Barcode::ZBar, zbarlight, ZXing, QR/barcode scanner applications, Video4Linux, libv4l2, GTK, Qt, GObject Introspection, and distro packages that split ZBar into CLI, library, and binding components.

### Sources

- <https://man.archlinux.org/man/extra/zbar/zbarcam.1.en>
- <https://metacpan.org/pod/Barcode%3A%3AZBar>
- <https://pypi.org/project/pyzbar/>
- <https://raw.githubusercontent.com/mchehab/zbar/master/NEWS.md>
- <https://raw.githubusercontent.com/mchehab/zbar/master/README.md>
- <https://zbar.sourceforge.net/>
- <https://zbar.sourceforge.net/about.html>


## Security Notes

narrow executable package without higher-risk signals.

- **Geiger risk:** green / low
- narrow executable package without higher-risk signals

## Source Database Details

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

## Other Package-Manager Records

- Debian apt - gir1.2-zbar-1.0 - 0.23.93-8: normalized package name match | Debian stable package indexes: gir1.2-zbar-1.0 from https://deb.debian.org/debian/dists/stable/main/binary-amd64/Packages.xz | QR code / bar code scanner and decoder (introspection data) | https://github.com/mchehab/zbar
- Debian apt - libbarcode-zbar-perl - 0.23.93-8: normalized package name match | Debian stable package indexes: libbarcode-zbar-perl from https://deb.debian.org/debian/dists/stable/main/binary-amd64/Packages.xz | QR code / bar code scanner and decoder (Perl bindings) | https://github.com/mchehab/zbar
- Debian apt - libzbar-dev - 0.23.93-8: normalized package name match | Debian stable package indexes: libzbar-dev from https://deb.debian.org/debian/dists/stable/main/binary-amd64/Packages.xz | QR code / bar code scanner and decoder (development) | https://github.com/mchehab/zbar
- Debian apt - libzbar0t64 - 0.23.93-8: normalized package name match | Debian stable package indexes: libzbar0t64 from https://deb.debian.org/debian/dists/stable/main/binary-amd64/Packages.xz | QR code / bar code scanner and decoder (library) | https://github.com/mchehab/zbar
- Debian apt - libzbargtk-dev - 0.23.93-8: normalized package name match | Debian stable package indexes: libzbargtk-dev from https://deb.debian.org/debian/dists/stable/main/binary-amd64/Packages.xz | QR code / bar code scanner and decoder (GTK+ bindings development) | https://github.com/mchehab/zbar
- Debian apt - libzbargtk0t64 - 0.23.93-8: normalized package name match | Debian stable package indexes: libzbargtk0t64 from https://deb.debian.org/debian/dists/stable/main/binary-amd64/Packages.xz | QR code / bar code scanner and decoder (GTK+ bindings) | https://github.com/mchehab/zbar
- Debian apt - libzbarqt-dev - 0.23.93-8: normalized package name match | Debian stable package indexes: libzbarqt-dev from https://deb.debian.org/debian/dists/stable/main/binary-amd64/Packages.xz | QR code / bar code scanner and decoder (Qt binding development) | https://github.com/mchehab/zbar
- Debian apt - libzbarqt0t64 - 0.23.93-8: normalized package name match | Debian stable package indexes: libzbarqt0t64 from https://deb.debian.org/debian/dists/stable/main/binary-amd64/Packages.xz | QR code / bar code scanner and decoder (Qt binding) | https://github.com/mchehab/zbar
- Debian apt - python3-zbar - 0.23.93-8: normalized package name match | Debian stable package indexes: python3-zbar from https://deb.debian.org/debian/dists/stable/main/binary-amd64/Packages.xz | QR code / bar code scanner and decoder (Python bindings) | https://github.com/mchehab/zbar
- Debian apt - zbar-tools - 0.23.93-8: normalized package name match | Debian stable package indexes: zbar-tools from https://deb.debian.org/debian/dists/stable/main/binary-amd64/Packages.xz | QR code / bar code scanner and decoder (utilities) | https://github.com/mchehab/zbar
- Debian apt - zbarcam-gtk - 0.23.93-8: normalized package name match | Debian stable package indexes: zbarcam-gtk from https://deb.debian.org/debian/dists/stable/main/binary-amd64/Packages.xz | QR code / bar code scanner and decoder (Gtk camera tool) | https://github.com/mchehab/zbar
- Debian apt - zbarcam-qt - 0.23.93-8: normalized package name match | Debian stable package indexes: zbarcam-qt from https://deb.debian.org/debian/dists/stable/main/binary-amd64/Packages.xz | QR code / bar code scanner and decoder (Qt camera tool) | https://github.com/mchehab/zbar
- Nix - zbar: normalized package name match | nixpkgs package indexes: pkgs/by-name/zb/zbar/package.nix from https://api.github.com/repos/NixOS/nixpkgs/git/trees/master?recursive=1
- Ubuntu apt - gir1.2-zbar-1.0 - 0.23.93-4build3: normalized package name match | Ubuntu 24.04 LTS package indexes: gir1.2-zbar-1.0 from https://archive.ubuntu.com/ubuntu/dists/noble/universe/binary-amd64/Packages.gz | QR code / bar code scanner and decoder (introspection data) | https://github.com/mchehab/zbar
- Ubuntu apt - libbarcode-zbar-perl - 0.23.93-4build3: normalized package name match | Ubuntu 24.04 LTS package indexes: libbarcode-zbar-perl from https://archive.ubuntu.com/ubuntu/dists/noble/universe/binary-amd64/Packages.gz | QR code / bar code scanner and decoder (Perl bindings) | https://github.com/mchehab/zbar
- Ubuntu apt - libzbar-dev - 0.23.93-4build3: normalized package name match | Ubuntu 24.04 LTS package indexes: libzbar-dev from https://archive.ubuntu.com/ubuntu/dists/noble/universe/binary-amd64/Packages.gz | QR code / bar code scanner and decoder (development) | https://github.com/mchehab/zbar


## Related links

- [Terminal utility packages](https://www.automicvault.com/pkg/terminal-utilities/) - Matched terminal and command-line workflow metadata.
- [Networking and protocol packages](https://www.automicvault.com/pkg/networking-protocol-tools/) - Matched network, protocol, or remote-service metadata.
- [Media and graphics packages](https://www.automicvault.com/pkg/media-graphics-tools/) - Matched media, image, audio, video, or graphics metadata.
- [Homebrew utility packages](https://www.automicvault.com/pkg/brew-utility-packages/) - Matched Homebrew package provider.
- [fontconfig](https://www.automicvault.com/pkg/brew/fontconfig/) - Runtime dependency declared by Homebrew.
- [freetype](https://www.automicvault.com/pkg/brew/freetype/) - Runtime dependency declared by Homebrew.
- [gettext](https://www.automicvault.com/pkg/brew/gettext/) - Runtime dependency declared by Homebrew.
- [glib](https://www.automicvault.com/pkg/brew/glib/) - Runtime dependency declared by Homebrew.
- [imagemagick](https://www.automicvault.com/pkg/brew/imagemagick/) - Runtime dependency declared by Homebrew.
- [jpeg-turbo](https://www.automicvault.com/pkg/brew/jpeg-turbo/) - Runtime dependency declared by Homebrew.
- [pkgconf](https://www.automicvault.com/pkg/brew/pkgconf/) - Build dependency declared by Homebrew.
- [xmlto](https://www.automicvault.com/pkg/brew/xmlto/) - Build dependency declared by Homebrew.
- [visp](https://www.automicvault.com/pkg/brew/visp/) - Popular package that depends on this formula.
- [zint](https://www.automicvault.com/pkg/brew/zint/) - Shares av.db curated category or tags: barcode, cli, library, media.
- [babl](https://www.automicvault.com/pkg/brew/babl/) - Shares av.db curated category or tags: cli, image-processing, library, media.
- [exact-image](https://www.automicvault.com/pkg/brew/exact-image/) - Shares av.db curated category or tags: cli, image-processing, library, media.
- [gd](https://www.automicvault.com/pkg/brew/gd/) - Shares av.db curated category or tags: cli, image-processing, library, media.
- [gegl](https://www.automicvault.com/pkg/brew/gegl/) - Shares av.db curated category or tags: cli, image-processing, library, media.
- [gifsicle](https://www.automicvault.com/pkg/brew/gifsicle/) - Shares av.db curated category or tags: cli, image-processing, library, media.
- [imageworsener](https://www.automicvault.com/pkg/brew/imageworsener/) - Shares av.db curated category or tags: cli, image-processing, library, media.
- [vips](https://www.automicvault.com/pkg/brew/vips/) - Both packages work with overlapping file formats or content types. Shared terms: cli, cms2, fontconfig, gettext, glib.
- [autotrace](https://www.automicvault.com/pkg/brew/autotrace/) - Local package facts share a topical domain. Shared terms: cli, cms2, fontconfig, freetype, gettext.

## Combined YAML source

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


## Sources

- 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
