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

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

## 安装

```sh
sudo av install brew:giflib
```

其他安装命令:

### macOS

- Homebrew (100%):

```sh
brew install giflib
```

  证据: local Homebrew formula metadata

- MacPorts (94%):

```sh
sudo port install giflib
```

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

### Linux

- apk (92%):

```sh
sudo apk add giflib
```

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

- dnf (92%):

```sh
sudo dnf install giflib
```

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

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

- pacman (92%):

```sh
sudo pacman -S giflib
```

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

- Debian apt (92%):

```sh
sudo apt install giflib-tools
```

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

- zypper (92%):

```sh
sudo zypper install giflib-devel
```

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

## 软件包事实

- **软件包键:** brew:giflib
- **软件包管理器:** Homebrew
- **版本:** 6.1.3
- **来源摘要:** Library and utilities for processing GIFs
- **主页:** <https://giflib.sourceforge.net/>
- **已生成:** 2026-08-03T19:37:03+00:00

## 可执行文件

- gifbuild (别名)
- gifclrmp (别名)
- giffix (别名)
- giftext (别名)
- giftool (别名)

## 安装行为

- Bottle: 不可用

## 版本和新鲜度

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

GIFLIB is the long-lived C service library and utility collection for reading, writing, inspecting, and transforming GIF images.

### 项目历史

GIFLIB traces its code lineage to a DOS library and command-line tool set written by Gershon Elber between the GIF87 and GIF89 specifications, with version 1.0 dated June 1989. Eric S. Raymond ported the code to System V Unix by the end of 1989 and reworked parts of the API between 1989 and 1992.

During the LZW patent era, part of the code base traveled as libungif with GIF compression removed. Compression support was merged back after the blocking patent expired in 2004, and the project resumed the giflib name. In 2012, Raymond returned to project leadership and released 4.2 and 5.0, with 5.0 addressing thread safety, GIF89 control blocks, and obsolete utility cleanup.

### 采用历史

GIFLIB's own history records that the Unix port was incorporated into NCSA Mosaic in 1994, making it part of the early web's image stack. The project describes the code as deployed across browsers, graphics applications, operating systems, smartphones, game consoles, and embedded devices.

### 使用方式

Practitioners use GIFLIB through its C API and through utilities such as gifbuild, gifclrmp, giffix, giftext, and giftool. The library supports sequential GIF I/O and whole-image in-memory workflows, while the utility set helps inspect, repair, compose, and transform GIF files.

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

GIFLIB matters to package maintainers because it is small, mature image infrastructure with a large reverse-dependency surface. ABI changes, security hardening, fuzzing fixes, and utility packaging decisions carry ecosystem weight beyond the package's size.

### 时间线

- 1989: GIFLIB 1.0 dated in the original DOS lineage.
- 1994: GIFLIB-derived code used in NCSA Mosaic.
- 1998: Toshio Kuratomi shipped 4.0.
- 2004: Compression support merged back after patent expiry.
- 2012: Version 5.0 released with thread-safety and GIF89 API work.
- 2026: Upstream SourceForge code browser shows active 6.x maintenance.

### Related projects

- libungif is part of GIFLIB's patent-era history. Gifsicle, ImageMagick, browser engines, and many image-processing stacks occupy adjacent or dependent parts of the GIF ecosystem.

### 来源

- <https://giflib.sourceforge.net/>
- <https://giflib.sourceforge.net/gif_lib.html>
- <https://giflib.sourceforge.net/history.html>
- <https://sourceforge.net/p/giflib/code/ci/master/tree/>


## 安全说明

library-like package without higher-risk signals.

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

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

- Debian apt - giflib-tools - 5.2.2-1+deb13u1: normalized package name match | Debian stable package indexes: giflib-tools from https://deb.debian.org/debian/dists/stable/main/binary-amd64/Packages.xz | library for GIF images (utilities) | https://giflib.sourceforge.net/
- Debian apt - libgif-dev - 5.2.2-1+deb13u1: normalized package name match | Debian stable package indexes: libgif-dev from https://deb.debian.org/debian/dists/stable/main/binary-amd64/Packages.xz | library for GIF images (development) | https://giflib.sourceforge.net/
- Debian apt - libgif7 - 5.2.2-1+deb13u1: normalized package name match | Debian stable package indexes: libgif7 from https://deb.debian.org/debian/dists/stable/main/binary-amd64/Packages.xz | library for GIF images (library) | https://giflib.sourceforge.net/
- Nix - giflib: normalized package name match | nixpkgs package indexes: pkgs/by-name/gi/giflib/package.nix from https://api.github.com/repos/NixOS/nixpkgs/git/trees/master?recursive=1
- Ubuntu apt - giflib-tools - 5.2.2-1ubuntu1: normalized package name match | Ubuntu 24.04 LTS package indexes: giflib-tools from https://archive.ubuntu.com/ubuntu/dists/noble/universe/binary-amd64/Packages.gz | library for GIF images (utilities) | https://giflib.sourceforge.net/
- Ubuntu apt - libgif-dev - 5.2.2-1ubuntu1: normalized package name match | Ubuntu 24.04 LTS package indexes: libgif-dev from https://archive.ubuntu.com/ubuntu/dists/noble/main/binary-amd64/Packages.gz | library for GIF images (development) | https://giflib.sourceforge.net/
- Ubuntu apt - libgif7 - 5.2.2-1ubuntu1: normalized package name match | Ubuntu 24.04 LTS package indexes: libgif7 from https://archive.ubuntu.com/ubuntu/dists/noble/main/binary-amd64/Packages.gz | library for GIF images (library) | https://giflib.sourceforge.net/
- apk - giflib - 5.2.2-r1: normalized package name match | Alpine Linux edge package indexes: giflib from https://dl-cdn.alpinelinux.org/alpine/edge/main/x86_64/APKINDEX.tar.gz | A library for reading and writing GIF images | https://sourceforge.net/projects/giflib/
- apk - giflib-dev - 5.2.2-r1: normalized package name match | Alpine Linux edge package indexes: giflib-dev from https://dl-cdn.alpinelinux.org/alpine/edge/main/x86_64/APKINDEX.tar.gz | A library for reading and writing GIF images (development files) | https://sourceforge.net/projects/giflib/
- apk - giflib-doc - 5.2.2-r1: normalized package name match | Alpine Linux edge package indexes: giflib-doc from https://dl-cdn.alpinelinux.org/alpine/edge/main/x86_64/APKINDEX.tar.gz | A library for reading and writing GIF images (documentation) | https://sourceforge.net/projects/giflib/
- apk - giflib-static - 5.2.2-r1: normalized package name match | Alpine Linux edge package indexes: giflib-static from https://dl-cdn.alpinelinux.org/alpine/edge/main/x86_64/APKINDEX.tar.gz | A library for reading and writing GIF images (static library) | https://sourceforge.net/projects/giflib/
- apk - giflib-utils - 5.2.2-r1: normalized package name match | Alpine Linux edge package indexes: giflib-utils from https://dl-cdn.alpinelinux.org/alpine/edge/main/x86_64/APKINDEX.tar.gz | Programs for manipulating GIF format image files | https://sourceforge.net/projects/giflib/
- dnf - giflib - 6.1.3-3.fc45: normalized package name match | Fedora Rawhide package metadata: giflib from https://dl.fedoraproject.org/pub/fedora/linux/development/rawhide/Everything/x86_64/os/repodata/07190dc5ae9f35ae73866675fed6d95fe6e8d9fe22c9d7cdf85862cb2ed24a4c-primary.xml.zst | A library and utilities for processing GIFs | http://www.sourceforge.net/projects/giflib/
- dnf - giflib-devel - 6.1.3-3.fc45: normalized package name match | Fedora Rawhide package metadata: giflib-devel from https://dl.fedoraproject.org/pub/fedora/linux/development/rawhide/Everything/x86_64/os/repodata/07190dc5ae9f35ae73866675fed6d95fe6e8d9fe22c9d7cdf85862cb2ed24a4c-primary.xml.zst | Development files for programs using the giflib library | http://www.sourceforge.net/projects/giflib/
- dnf - giflib-utils - 6.1.3-3.fc45: normalized package name match | Fedora Rawhide package metadata: giflib-utils from https://dl.fedoraproject.org/pub/fedora/linux/development/rawhide/Everything/x86_64/os/repodata/07190dc5ae9f35ae73866675fed6d95fe6e8d9fe22c9d7cdf85862cb2ed24a4c-primary.xml.zst | Programs for manipulating GIF format image files | http://www.sourceforge.net/projects/giflib/
- dnf - mingw32-giflib - 6.1.3-3.fc45: normalized package name match | Fedora Rawhide package metadata: mingw32-giflib from https://dl.fedoraproject.org/pub/fedora/linux/development/rawhide/Everything/x86_64/os/repodata/07190dc5ae9f35ae73866675fed6d95fe6e8d9fe22c9d7cdf85862cb2ed24a4c-primary.xml.zst | MinGW Windows giflib library | http://www.sourceforge.net/projects/giflib/


## Combined YAML source

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