# 使用 Homebrew, apk, apt, dnf, MacPorts, Nix, pacman, zypper 安装 babl

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

## 安装

```sh
sudo av install brew:babl
```

其他安装命令:

### macOS

- Homebrew (100%):

```sh
brew install babl
```

  证据: local Homebrew formula metadata

- MacPorts (94%):

```sh
sudo port install babl
```

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

### Linux

- apk (92%):

```sh
sudo apk add babl
```

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

- Debian apt (92%):

```sh
sudo apt install gir1.2-babl-0.1
```

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

- dnf (92%):

```sh
sudo dnf install babl
```

  证据: Fedora Rawhide package metadata: babl 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#babl
```

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

- pacman (92%):

```sh
sudo pacman -S babl
```

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

- zypper (92%):

```sh
sudo zypper install babl-devel
```

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

## 软件包事实

- **软件包键:** brew:babl
- **软件包管理器:** Homebrew
- **软件包管理器页面:** <https://formulae.brew.sh/formula/babl>
- **版本:** 0.1.126
- **来源摘要:** Dynamic, any-to-any, pixel format translation library
- **主页:** <https://www.gegl.org/babl/>
- **仓库:** <https://gitlab.gnome.org/GNOME/babl>
- **上游文档:** <https://gegl.org/babl>
- **许可证:** LGPL-3.0-or-later
- **源码归档:** <https://download.gimp.org/pub/babl/0.1/babl-0.1.126.tar.xz>
- **最后更新:** 2026-06-22T14:02:50-07:00
- **已生成:** 2026-07-08T07:18:31+00:00

## 可执行文件

- babl (cli)
- babl (别名)

## 依赖

- little-cms2

## 构建依赖

- glib
- gobject-introspection
- meson
- ninja
- pcre2
- pkgconf
- vala

## 安装行为

- post-install 钩子: 未定义
- Bottle: 可用 于 arm64_linux, arm64_sequoia, arm64_sonoma, arm64_tahoe, sonoma, x86_64_linux

## 版本和新鲜度

- 页面生成时间: 2026-07-08
- 管理器版本: 0.1.126
- 管理器更新时间: 2026-06-22
- 本地数据: OK
- 上游仓库: https://www.gegl.org/babl/
- 信息: Release/tag comparison is only available for GitHub repositories.
## 项目历史与用法

babl is a C library and small command-line tool for pixel encoding, pixel-format introspection, and color-space conversion. It is most visible as infrastructure under GEGL and GIMP rather than as an end-user application.

### 项目历史

The official babl site describes it as a pixel encoding and color-space conversion engine with a vocabulary for building new pixel formats from existing primitives. Its source tree is hosted by GNOME, and the site says babl releases are often made just before GEGL releases when GEGL needs significant babl improvements.

The project has grown from a format-conversion library into a portability-sensitive graphics component. Recent NEWS entries show work on ICC handling, SIMD and CPU-specific paths, lookup-table behavior, Windows/MSVC support, and a command-line tool added in the 0.1.94 release.

### 采用历史

babl's adoption is mostly indirect: the official documentation states that GIMP pixel storage uses GEGL's GeglBuffer and implicit conversions using babl formats. The package appears across Homebrew, Debian/Ubuntu, Fedora, Arch, Nix, MacPorts, Alpine, and openSUSE metadata in the supplied package-manager facts.

### 使用方式

Most users encounter babl as a build and runtime dependency of image software. Developers use its C API to name formats, convert buffers, add color models or data types, and rely on babl's runtime profiling and cached conversion selection for fast pixel pipelines.

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

For package maintainers, babl is a classic small-but-central graphics dependency: it is not flashy, but version skew can affect GIMP/GEGL builds, color-management behavior, SIMD dispatch, and cross-platform packaging. Its significance is the kind dependency-graph people notice when a desktop graphics stack fails to build.

### 时间线

- 2018: GNOME GitLab metadata records the babl project on gitlab.gnome.org.
- 2019: babl 0.1.62 NEWS notes initial CMYK spaces with lcms2-based ICC support.
- 2022: babl 0.1.94 NEWS notes the addition of a command-line tool.
- 2025: babl 0.1.114 NEWS notes ICC TRC cache fixes and BABL_ICC_INTENT_DEFAULT.
- 2026: babl 0.1.126 NEWS notes that building with MSVC is now possible.

### Related projects

- GEGL is babl's closest companion project: the babl site explicitly links babl releases and GEGL needs. GIMP is the major downstream application named by the official docs. lcms2 is relevant for ICC profile and CMYK color-management support.

### 来源

- <https://gegl.org/babl>
- <https://gitlab.gnome.org/GNOME/babl/-/raw/master/NEWS>
- source_facts.package-manager


## 安全说明

library-like package without higher-risk signals.

- **Geiger 风险:** 绿色 / 低
- library-like package without higher-risk signals

## 源数据库详情

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

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

- Debian apt - gir1.2-babl-0.1 - 1:0.1.114-2: normalized package name match | Debian stable package indexes: gir1.2-babl-0.1 from https://deb.debian.org/debian/dists/stable/main/binary-amd64/Packages.xz | GObject introspection data for Babl library | https://gegl.org/babl/
- Debian apt - libbabl-0.1-0 - 1:0.1.114-2: normalized package name match | Debian stable package indexes: libbabl-0.1-0 from https://deb.debian.org/debian/dists/stable/main/binary-amd64/Packages.xz | Dynamic, any to any, pixel format conversion library | https://gegl.org/babl/
- Debian apt - libbabl-dev - 1:0.1.114-2: normalized package name match | Debian stable package indexes: libbabl-dev from https://deb.debian.org/debian/dists/stable/main/binary-amd64/Packages.xz | Dynamic, any to any, pixel format conversion library (development files) | https://gegl.org/babl/
- Debian apt - libbabl-doc - 1:0.1.114-2: normalized package name match | Debian stable package indexes: libbabl-doc from https://deb.debian.org/debian/dists/stable/main/binary-amd64/Packages.xz | Dynamic, any to any, pixel format conversion library (documentation) | https://gegl.org/babl/
- Nix - babl: normalized package name match | nixpkgs package indexes: pkgs/by-name/ba/babl/package.nix from https://api.github.com/repos/NixOS/nixpkgs/git/trees/master?recursive=1
- Ubuntu apt - gir1.2-babl-0.1 - 1:0.1.108-1: normalized package name match | Ubuntu 24.04 LTS package indexes: gir1.2-babl-0.1 from https://archive.ubuntu.com/ubuntu/dists/noble/universe/binary-amd64/Packages.gz | GObject introspection data for Babl library | https://gegl.org/babl/
- Ubuntu apt - libbabl-0.1-0 - 1:0.1.108-1: normalized package name match | Ubuntu 24.04 LTS package indexes: libbabl-0.1-0 from https://archive.ubuntu.com/ubuntu/dists/noble/universe/binary-amd64/Packages.gz | Dynamic, any to any, pixel format conversion library | https://gegl.org/babl/
- Ubuntu apt - libbabl-dev - 1:0.1.108-1: normalized package name match | Ubuntu 24.04 LTS package indexes: libbabl-dev from https://archive.ubuntu.com/ubuntu/dists/noble/universe/binary-amd64/Packages.gz | Dynamic, any to any, pixel format conversion library (development files) | https://gegl.org/babl/
- Ubuntu apt - libbabl-doc - 1:0.1.108-1: normalized package name match | Ubuntu 24.04 LTS package indexes: libbabl-doc from https://archive.ubuntu.com/ubuntu/dists/noble/universe/binary-amd64/Packages.gz | Dynamic, any to any, pixel format conversion library (documentation) | https://gegl.org/babl/
- apk - babl - 0.1.126-r0: normalized package name match | Alpine Linux edge package indexes: babl from https://dl-cdn.alpinelinux.org/alpine/edge/community/x86_64/APKINDEX.tar.gz | Dynamic, any to any, pixel format conversion library | https://gegl.org/babl
- apk - babl-dev - 0.1.126-r0: normalized package name match | Alpine Linux edge package indexes: babl-dev from https://dl-cdn.alpinelinux.org/alpine/edge/community/x86_64/APKINDEX.tar.gz | Dynamic, any to any, pixel format conversion library (development files) | https://gegl.org/babl
- apk - babl-tools - 0.1.126-r0: normalized package name match | Alpine Linux edge package indexes: babl-tools from https://dl-cdn.alpinelinux.org/alpine/edge/community/x86_64/APKINDEX.tar.gz | Dynamic, any to any, pixel format conversion library (cli tool) | https://gegl.org/babl
- dnf - babl - 0.1.126-1.fc45: normalized package name match | Fedora Rawhide package metadata: babl from https://dl.fedoraproject.org/pub/fedora/linux/development/rawhide/Everything/x86_64/os/repodata/e5ca8ce900cd68f5419e1c39ae517343100b306336cbaeb70a3c153121d95094-primary.xml.zst | A dynamic, any to any, pixel format conversion library | https://www.gegl.org/babl/
- dnf - babl-devel - 0.1.126-1.fc45: normalized package name match | Fedora Rawhide package metadata: babl-devel from https://dl.fedoraproject.org/pub/fedora/linux/development/rawhide/Everything/x86_64/os/repodata/e5ca8ce900cd68f5419e1c39ae517343100b306336cbaeb70a3c153121d95094-primary.xml.zst | Headers for developing programs that will use babl | https://www.gegl.org/babl/
- dnf - babl-devel-docs - 0.1.126-1.fc45: normalized package name match | Fedora Rawhide package metadata: babl-devel-docs from https://dl.fedoraproject.org/pub/fedora/linux/development/rawhide/Everything/x86_64/os/repodata/e5ca8ce900cd68f5419e1c39ae517343100b306336cbaeb70a3c153121d95094-primary.xml.zst | Documentation for developing programs that will use babl | https://www.gegl.org/babl/
- pacman - babl - 0.1.126-1: normalized package name match | Arch Linux sync databases: babl from https://geo.mirror.pkgbuild.com/extra/os/x86_64/extra.db.tar.gz | Dynamic, any to any, pixel format conversion library | https://gegl.org/babl/


## 相关链接

- [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.
- [Networking and protocol packages](https://www.automicvault.com/zh-hans/pkg/networking-protocol-tools/) - Matched network, protocol, or remote-service metadata.
- [Media and graphics packages](https://www.automicvault.com/zh-hans/pkg/media-graphics-tools/) - Matched media, image, audio, video, or graphics metadata.
- [little-cms2](https://www.automicvault.com/zh-hans/pkg/brew/little-cms2/) - Runtime dependency declared by Homebrew.
- [glib](https://www.automicvault.com/zh-hans/pkg/brew/glib/) - Build dependency declared by Homebrew.
- [gobject-introspection](https://www.automicvault.com/zh-hans/pkg/brew/gobject-introspection/) - Build dependency declared by Homebrew.
- [meson](https://www.automicvault.com/zh-hans/pkg/brew/meson/) - Build dependency declared by Homebrew.
- [ninja](https://www.automicvault.com/zh-hans/pkg/brew/ninja/) - Build dependency declared by Homebrew.
- [gegl](https://www.automicvault.com/zh-hans/pkg/brew/gegl/) - Popular package that depends on this formula.
- [exact-image](https://www.automicvault.com/zh-hans/pkg/brew/exact-image/) - Shares av.db curated category or tags: cli, graphics, image-processing, library, media.
- [gd](https://www.automicvault.com/zh-hans/pkg/brew/gd/) - Shares av.db curated category or tags: cli, graphics, image-processing, library, media.
- [imagemagick](https://www.automicvault.com/zh-hans/pkg/brew/imagemagick/) - Shares av.db curated category or tags: cli, graphics, image-processing, library, media.
- [libsail](https://www.automicvault.com/zh-hans/pkg/brew/libsail/) - Shares av.db curated category or tags: cli, graphics, image-processing, library, media.
- [gmic](https://www.automicvault.com/zh-hans/pkg/brew/gmic/) - Shares av.db curated category or tags: cli, graphics, image-processing, media.
- [graphicsmagick](https://www.automicvault.com/zh-hans/pkg/brew/graphicsmagick/) - Shares av.db curated category or tags: cli, graphics, image-processing, media.
- [imageworsener](https://www.automicvault.com/zh-hans/pkg/brew/imageworsener/) - Shares av.db curated category or tags: cli, image-processing, library, media.

## Combined YAML source

View the package source record on GitHub. [combined/babl.yml](https://github.com/automic-vault/db/blob/main/combined/babl.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
