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

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

## 安装

```sh
sudo av install brew:imlib2
```

其他安装命令:

### macOS

- Homebrew (100%):

```sh
brew install imlib2
```

  证据: local Homebrew formula metadata

- MacPorts (94%):

```sh
sudo port install imlib2
```

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

### Linux

- apk (92%):

```sh
sudo apk add imlib2
```

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

- dnf (92%):

```sh
sudo dnf install imlib2
```

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

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

- pacman (92%):

```sh
sudo pacman -S imlib2
```

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

- zypper (92%):

```sh
sudo zypper install imlib2
```

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

- Debian apt (92%):

```sh
sudo apt install libimlib2-dev
```

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

## 软件包事实

- **软件包键:** brew:imlib2
- **软件包管理器:** Homebrew
- **版本:** 1.12.6
- **来源摘要:** Image loading and rendering library
- **主页:** <https://sourceforge.net/projects/enlightenment/>
- **已生成:** 2026-08-03T19:37:03+00:00

## 可执行文件

- imlib2_bumpmap (别名)
- imlib2_colorspace (别名)
- imlib2_conv (别名)
- imlib2_grab (别名)
- imlib2_load (别名)
- imlib2_poly (别名)
- imlib2_show (别名)
- imlib2_test (别名)
- imlib2_view (别名)

## 安装行为

- Bottle: 不可用

## 版本和新鲜度

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

Imlib2 is a C image loading, saving, rendering, and manipulation library from the Enlightenment ecosystem. Its own README describes it as a complete rewrite of the Imlib 1.x series, with a more modular, simple, and flexible architecture.

### 项目历史

Imlib2 predates most modern GitHub-centered package histories. The official SourceForge project for Enlightenment was registered in 1999, and the official ChangeLog records Imlib2 releases at least back to the 1.2.x line in 2006. The repository later lived in the Enlightenment Git service under the legacy-imlib2 name.

The project has remained active as a low-level graphics library rather than an end-user image editor. The ChangeLog shows steady maintenance across loader fixes, scaling and alpha behavior, security-sensitive parser work, and support for formats such as AVIF, HEIF, JPEG XL, QOI, SVG, and Y4M in later releases.

### 采用历史

Imlib2 is widely packaged because many Unix graphics and desktop tools depend on a small C library for image loading and rendering. The input metadata lists packages across Alpine, Homebrew, Debian, Fedora, MacPorts, Nix, Arch, Ubuntu, and openSUSE; Homebrew also publishes a formula for the library.

Its adoption is less about direct command-line invocation and more about being a shared library under desktop utilities, lightweight viewers, and Enlightenment-era software. The README names Eterm, feh, and geist as example consumers.

### 使用方式

Imlib2 is used by C programs to load and save images, render and manipulate pixel data, draw polygons, and work with image formats through load/save modules. The Homebrew formula exposes helper commands such as imlib2_load, imlib2_view, imlib2_conv, and imlib2_grab, but the main value is the library and development headers.

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

Imlib2 is package-nerd significant because it is the old-school Unix graphics dependency that keeps showing up in distro dependency trees. It illustrates a different kind of package importance: not a fashionable CLI, but a long-lived C ABI and loader ecosystem that distributions keep carrying because other software still builds on it.

### 时间线

- 1999-11-04: Enlightenment project registered on SourceForge.
- 2006-03-18: Imlib2 v1.2.2 recorded in the official ChangeLog.
- 2007-05-06: v1.4.0 recorded in the official ChangeLog.
- 2020-08-01: v1.7.0 recorded in the official ChangeLog.
- 2023-08-17: v1.12.0 recorded in the official ChangeLog.
- 2026-01-03: v1.12.6 recorded in the official ChangeLog.

### Related projects

- Imlib2 is part of the broader Enlightenment family. Its README names Eterm, feh, and geist as examples of software using the library, and its history is connected to Imlib 1.x through the rewrite described in the README.

### 来源

- <https://formulae.brew.sh/formula/imlib2>
- <https://git.enlightenment.org/old/legacy-imlib2>
- <https://git.enlightenment.org/old/legacy-imlib2/src/branch/master/ChangeLog>
- <https://git.enlightenment.org/old/legacy-imlib2/src/branch/master/README.in>
- <https://sourceforge.net/projects/enlightenment/>


## 安全说明

broad file, network, media, or database tool signal.

- **Geiger 风险:** blue / 中
- broad file, network, media, or database tool signal

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

- Debian apt - libimlib2-dev - 1.12.4-2: normalized package name match | Debian stable package indexes: libimlib2-dev from https://deb.debian.org/debian/dists/stable/main/binary-amd64/Packages.xz | image loading, rendering, saving library (development files) | https://docs.enlightenment.org/api/imlib2/html/index.html
- Debian apt - libimlib2t64 - 1.12.4-2: normalized package name match | Debian stable package indexes: libimlib2t64 from https://deb.debian.org/debian/dists/stable/main/binary-amd64/Packages.xz | image loading, rendering, saving library | https://docs.enlightenment.org/api/imlib2/html/index.html
- Nix - imlib2: normalized package name match | nixpkgs package indexes: pkgs/by-name/im/imlib2/package.nix from https://api.github.com/repos/NixOS/nixpkgs/git/trees/master?recursive=1
- Ubuntu apt - libimlib2-dev - 1.12.1-1.1build2: normalized package name match | Ubuntu 24.04 LTS package indexes: libimlib2-dev from https://archive.ubuntu.com/ubuntu/dists/noble/universe/binary-amd64/Packages.gz | image loading, rendering, saving library (development files) | https://docs.enlightenment.org/api/imlib2/html/index.html
- Ubuntu apt - libimlib2t64 - 1.12.1-1.1build2: normalized package name match | Ubuntu 24.04 LTS package indexes: libimlib2t64 from https://archive.ubuntu.com/ubuntu/dists/noble/universe/binary-amd64/Packages.gz | image loading, rendering, saving library | https://docs.enlightenment.org/api/imlib2/html/index.html
- apk - imlib2 - 1.12.6-r0: normalized package name match | Alpine Linux edge package indexes: imlib2 from https://dl-cdn.alpinelinux.org/alpine/edge/community/x86_64/APKINDEX.tar.gz | Image manipulation library | https://sourceforge.net/projects/enlightenment/
- apk - imlib2-dev - 1.12.6-r0: normalized package name match | Alpine Linux edge package indexes: imlib2-dev from https://dl-cdn.alpinelinux.org/alpine/edge/community/x86_64/APKINDEX.tar.gz | Image manipulation library (development files) | https://sourceforge.net/projects/enlightenment/
- dnf - imlib2 - 1.12.5-3.fc45: normalized package name match | Fedora Rawhide package metadata: imlib2 from https://dl.fedoraproject.org/pub/fedora/linux/development/rawhide/Everything/x86_64/os/repodata/07190dc5ae9f35ae73866675fed6d95fe6e8d9fe22c9d7cdf85862cb2ed24a4c-primary.xml.zst | Image loading, saving, rendering, and manipulation library | http://docs.enlightenment.org/api/imlib2/html/
- dnf - imlib2-devel - 1.12.5-3.fc45: normalized package name match | Fedora Rawhide package metadata: imlib2-devel from https://dl.fedoraproject.org/pub/fedora/linux/development/rawhide/Everything/x86_64/os/repodata/07190dc5ae9f35ae73866675fed6d95fe6e8d9fe22c9d7cdf85862cb2ed24a4c-primary.xml.zst | Development package for imlib2 | http://docs.enlightenment.org/api/imlib2/html/
- dnf - imlib2-id3tag-loader - 1.12.5-3.fc45: normalized package name match | Fedora Rawhide package metadata: imlib2-id3tag-loader from https://dl.fedoraproject.org/pub/fedora/linux/development/rawhide/Everything/x86_64/os/repodata/07190dc5ae9f35ae73866675fed6d95fe6e8d9fe22c9d7cdf85862cb2ed24a4c-primary.xml.zst | Imlib2 id3tag-loader | http://docs.enlightenment.org/api/imlib2/html/
- pacman - imlib2 - 1.12.6-2: normalized package name match | Arch Linux sync databases: imlib2 from https://geo.mirror.pkgbuild.com/extra/os/x86_64/extra.db.tar.gz | Library that does image file loading and saving as well as rendering, manipulation, arbitrary polygon support | https://sourceforge.net/projects/enlightenment/
- zypper - imlib2 - 1.12.6-1.7: normalized package name match | openSUSE Tumbleweed package metadata: imlib2 from https://download.opensuse.org/tumbleweed/repo/oss/repodata/50b07339cb64c8ed4091bdbabddadc1ff5737b090e478818a195b40d8a3292861a879139b4a3987c31109699fde9fbf4a716367ddf4eef77da75f96e3193d6ed-primary.xml.zst | Image handling and conversion library | https://sourceforge.net/projects/enlightenment
- zypper - imlib2-demo - 1.12.6-1.7: normalized package name match | openSUSE Tumbleweed package metadata: imlib2-demo from https://download.opensuse.org/tumbleweed/repo/oss/repodata/50b07339cb64c8ed4091bdbabddadc1ff5737b090e478818a195b40d8a3292861a879139b4a3987c31109699fde9fbf4a716367ddf4eef77da75f96e3193d6ed-primary.xml.zst | Imlib 2 - demo programs | https://sourceforge.net/projects/enlightenment
- zypper - imlib2-devel - 1.12.6-1.7: normalized package name match | openSUSE Tumbleweed package metadata: imlib2-devel from https://download.opensuse.org/tumbleweed/repo/oss/repodata/50b07339cb64c8ed4091bdbabddadc1ff5737b090e478818a195b40d8a3292861a879139b4a3987c31109699fde9fbf4a716367ddf4eef77da75f96e3193d6ed-primary.xml.zst | Imlib 2 - development libraries | https://sourceforge.net/projects/enlightenment
- zypper - imlib2-filters - 1.12.6-1.7: normalized package name match | openSUSE Tumbleweed package metadata: imlib2-filters from https://download.opensuse.org/tumbleweed/repo/oss/repodata/50b07339cb64c8ed4091bdbabddadc1ff5737b090e478818a195b40d8a3292861a879139b4a3987c31109699fde9fbf4a716367ddf4eef77da75f96e3193d6ed-primary.xml.zst | Imlib 2 - plugin filters | https://sourceforge.net/projects/enlightenment
- zypper - imlib2-loaders - 1.12.6-1.7: normalized package name match | openSUSE Tumbleweed package metadata: imlib2-loaders from https://download.opensuse.org/tumbleweed/repo/oss/repodata/50b07339cb64c8ed4091bdbabddadc1ff5737b090e478818a195b40d8a3292861a879139b4a3987c31109699fde9fbf4a716367ddf4eef77da75f96e3193d6ed-primary.xml.zst | Imlib 2 - image loaders | https://sourceforge.net/projects/enlightenment


## Combined YAML source

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