Automic VaultAutomic Vault

brew

使用 Homebrew, apk, dnf, Nix, pacman, zypper 安装 gd

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

安装

其他安装命令

macOS

Homebrew已验证 · 100%
brew install gd

local Homebrew formula metadata

Linux

Alpine Linux apk已验证 · 92%
sudo apk add gd

Alpine Linux edge package indexes · gd · 来源: dl-cdn.alpinelinux.org

Fedora dnf已验证 · 92%
sudo dnf install gd

Fedora Rawhide package metadata · gd · 来源: dl.fedoraproject.org

Nix已验证 · 92%
nix profile install nixpkgs#gd

nixpkgs package indexes · pkgs/by-name/gd/gd/package.nix · 来源: api.github.com

Arch Linux pacman已验证 · 92%
sudo pacman -S gd

Arch Linux sync databases · gd · 来源: geo.mirror.pkgbuild.com

openSUSE zypper已验证 · 92%
sudo zypper install gd

openSUSE Tumbleweed package metadata · gd · 来源: download.opensuse.org

概览

软件包摘要

Graphics library to dynamically manipulate images

命令和别名

  • annotate
  • bdftogd
  • gd2copypal
  • gd2togif
  • gd2topng
  • gdcmpgif
  • gdparttopng
  • gdtopng
  • giftogd2
  • pngtogd
  • pngtogd2
  • webpng

历史

项目历史与用法

GD Graphics Library, packaged as gd or libgd, is a C library for dynamic image creation. It is commonly used to generate charts, graphics, thumbnails, and image conversions, especially in web applications.

项目历史

The official README and About page state that GD was originally developed by Thomas Boutell and is now maintained by many contributors, with the About page placing maintenance under the PHP.net umbrella. The modern repository describes C99/C++-compatible builds through CMake or configure and broad platform support.

采用历史

GD spread through language bindings and web stacks: the official pages name Perl, PHP, Ruby, and other wrappers, and describe web development as its most common application area. Its package-manager life is tied to optional image-format libraries such as libpng, libjpeg, libwebp, libavif, libheif, libtiff, libXpm, FreeType, Fontconfig, libraqm, and libimagequant.

使用方式

Applications link libgd to create or transform raster images on demand. Typical uses include chart generation, thumbnailing, format conversion, transparency and blending operations, image transformations, filters, and text rendering when optional font libraries are enabled.

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

GD is a classic dependency package: small at the API surface, but connected to a wide graph of image codecs, language bindings, build systems, and security updates. Its history explains why many Unix package sets carry both libgd itself and a cluster of optional image/font libraries.

时间线

  • 2015: GitHub records the libgd repository creation.
  • 2017: GD 2.2.5 is released with security fixes.
  • 2020: GD 2.3.0 is released with multiple security fixes and test additions.
  • 2021: GD 2.3.2 adds AVIF and HEIF support, followed by GD 2.3.3 build and bug fixes.
  • 2026: The README lists GD 2.3 in bug-fix support, GD 2.4 as active development, and GD 3.0 as early vector/API work.

Related projects

  • PHP.net is the umbrella named by the official About page.
  • Perl, PHP, Ruby, and other bindings expose GD to language ecosystems.
  • libpng, libjpeg or libjpeg-turbo, libwebp, libavif, libheif, libtiff, libXpm, FreeType, Fontconfig, libraqm, and libimagequant are adjacent optional dependencies.

安全态势

风险级别:blue

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

风险分类器

blue 风险 · 中 置信度 · tool

原因

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

信号

  • text:image

安装行为

  • formula 元数据中未记录 Homebrew post-install 钩子。
  • Homebrew bottle 元数据适用于 12 个平台目标。
  • 安装时包含 7 个运行时依赖。

建议审查

在无人值守的代理使用前,请检查该工具是否读取明文凭据、写入远程状态、发布制品或调用插件。

可执行文件

已安装的可执行文件

命令类型暴露范围备注
annotatecli全局可执行文件
bdftogdcli全局可执行文件
gd2copypalcli全局可执行文件
gd2togifcli全局可执行文件
gd2topngcli全局可执行文件
gdcmpgifcli全局可执行文件
gdparttopngcli全局可执行文件
gdtopngcli全局可执行文件
giftogd2cli全局可执行文件
pngtogdcli全局可执行文件
pngtogd2cli全局可执行文件
webpngcli全局可执行文件

新鲜度

版本和新鲜度

这些信号区分页生成时间、软件包管理器活动和上游发布比较。只有存在证据 URL 和可比较版本时,才会提示版本落后。

页面生成时间2026-07-10
管理器版本2.3.3
管理器更新时间2026-06-22
本地数据OK
上游not checked
检测到的最新版本未检测到

https://github.com/libgd/libgd

安装元数据

软件包元数据

软件包键brew:gd
版本2.3.3
软件包管理器Homebrew
软件包管理器页面https://formulae.brew.sh/formula/gd
主页https://libgd.github.io/
仓库https://github.com/libgd/libgd
上游文档https://libgd.github.io/manuals/2.3.3
许可证GD
源码归档https://github.com/libgd/libgd/releases/download/gd-2.3.3/libgd-2.3.3.tar.xz
最后更新2026-06-22T14:03:26-07:00
Pulseupdated
依赖fontconfig, freetype, jpeg-turbo, libavif, libpng, libtiff, webp
Bottle可用 (于 arm64_big_sur, arm64_linux, arm64_monterey, arm64_sequoia, arm64_sonoma, arm64_tahoe, arm64_ventura, big_sur, monterey, sonoma, ventura, x86_64_linux)
Homebrew post-install未定义
服务未声明

注册表事实

源数据库详情

Source DatabaseHomebrew formula API
Taphomebrew/core
Full Namegd
Aliases
  • libgd
Version Scheme0
Revision6
Head VersionHEAD
Conflicts With
  • mummer
Bottle Stable Root URLhttps://ghcr.io/v2/homebrew/core
Deprecatedno
Disabledno
Keg Onlyno
URL Keys
  • head
  • stable

源数据库匹配

其他软件包管理器记录

匹配项来自外部软件包管理器索引,并与本地 Automic Vault 软件包链接分开显示。

Nix95%

gd

nix profile install nixpkgs#gd
  • normalized package name match
  • 匹配方式:Gd
nixpkgs package indexes · api.github.com · nixpkgs package indexes: pkgs/by-name/gd/gd/package.nix from https://api.github.com/repos/NixOS/nixpkgs/git/trees/master?recursive=1
apk95%

gd 2.3.3-r10

Library for the dynamic creation of images by programmers

https://libgd.github.io/

sudo apk add gd
  • License: GD
  • Architecture: x86_64
  • Source Package: gd
  • 1 依赖
  • 1 提供
  • normalized package name match
  • 匹配方式:Gd
Alpine Linux edge package indexes · dl-cdn.alpinelinux.org · Alpine Linux edge package indexes: gd from https://dl-cdn.alpinelinux.org/alpine/edge/main/x86_64/APKINDEX.tar.gz
apk95%

gd-dev 2.3.3-r10

Library for the dynamic creation of images by programmers (development files)

https://libgd.github.io/

sudo apk add gd-dev
  • License: GD
  • Architecture: x86_64
  • Source Package: gd
  • 1 依赖
  • 1 提供
  • normalized package name match
  • 匹配方式:Gd
Alpine Linux edge package indexes · dl-cdn.alpinelinux.org · Alpine Linux edge package indexes: gd-dev from https://dl-cdn.alpinelinux.org/alpine/edge/main/x86_64/APKINDEX.tar.gz
apk95%

gd-doc 2.3.3-r10

Library for the dynamic creation of images by programmers (documentation)

https://libgd.github.io/

sudo apk add gd-doc
  • License: GD
  • Architecture: x86_64
  • Source Package: gd
  • normalized package name match
  • 匹配方式:Gd
Alpine Linux edge package indexes · dl-cdn.alpinelinux.org · Alpine Linux edge package indexes: gd-doc from https://dl-cdn.alpinelinux.org/alpine/edge/main/x86_64/APKINDEX.tar.gz
apk95%

libgd 2.3.3-r10

Library for the dynamic creation of images by programmers (libraries)

https://libgd.github.io/

sudo apk add libgd
  • License: GD
  • Architecture: x86_64
  • Source Package: gd
  • 1 依赖
  • 1 提供
  • normalized package name match
  • 匹配方式:Gd
Alpine Linux edge package indexes · dl-cdn.alpinelinux.org · Alpine Linux edge package indexes: libgd from https://dl-cdn.alpinelinux.org/alpine/edge/main/x86_64/APKINDEX.tar.gz
dnf95%

gd 2.3.3-21.fc44

A graphics library for quick creation of PNG or JPEG images

http://libgd.github.io/

sudo dnf install gd
  • License: GD
  • Category: Unspecified
  • Architecture: i686
  • Source Package: gd
  • 15 依赖
  • 2 提供
  • normalized package name match
  • 匹配方式:Gd
Fedora Rawhide package metadata · dl.fedoraproject.org · Fedora Rawhide package metadata: gd from https://dl.fedoraproject.org/pub/fedora/linux/development/rawhide/Everything/x86_64/os/repodata/e5ca8ce900cd68f5419e1c39ae517343100b306336cbaeb70a3c153121d95094-primary.xml.zst
dnf95%

gd-devel 2.3.3-21.fc44

The development libraries and header files for gd

http://libgd.github.io/

sudo dnf install gd-devel
  • License: GD
  • Category: Unspecified
  • Architecture: i686
  • Source Package: gd
  • 15 依赖
  • 2 提供
  • normalized package name match
  • 匹配方式:Gd
Fedora Rawhide package metadata · dl.fedoraproject.org · Fedora Rawhide package metadata: gd-devel from https://dl.fedoraproject.org/pub/fedora/linux/development/rawhide/Everything/x86_64/os/repodata/e5ca8ce900cd68f5419e1c39ae517343100b306336cbaeb70a3c153121d95094-primary.xml.zst
dnf95%

gd-progs 2.3.3-21.fc44

Utility programs that use libgd

http://libgd.github.io/

sudo dnf install gd-progs
  • License: GD
  • Category: Unspecified
  • Architecture: x86_64
  • Source Package: gd
  • 6 依赖
  • 1 提供
  • normalized package name match
  • 匹配方式:Gd
Fedora Rawhide package metadata · dl.fedoraproject.org · Fedora Rawhide package metadata: gd-progs from https://dl.fedoraproject.org/pub/fedora/linux/development/rawhide/Everything/x86_64/os/repodata/e5ca8ce900cd68f5419e1c39ae517343100b306336cbaeb70a3c153121d95094-primary.xml.zst
pacman95%

gd 2.3.3-9

Library for the dynamic creation of images by programmers

https://libgd.github.io/

sudo pacman -S gd
  • License: custom
  • Architecture: x86_64
  • 5 依赖
  • 1 可选依赖
  • normalized package name match
  • 匹配方式:Gd
Arch Linux sync databases · geo.mirror.pkgbuild.com · Arch Linux sync databases: gd from https://geo.mirror.pkgbuild.com/extra/os/x86_64/extra.db.tar.gz
zypper95%

gd 2.3.3-4.7

A Drawing Library for Programs That Use PNG and JPEG Output

https://libgd.github.io/

sudo zypper install gd
  • License: MIT
  • Category: Unspecified
  • Architecture: x86_64
  • Source Package: gd
  • 3 依赖
  • 2 提供
  • normalized package name match
  • 匹配方式:Gd
openSUSE Tumbleweed package metadata · download.opensuse.org · openSUSE Tumbleweed package metadata: gd from https://download.opensuse.org/tumbleweed/repo/oss/repodata/be8d3611d25469107f32075a1697e69ec57a2b850b42348a658cc671ad5ec2b50760d02c3e59524d50da9a11d5be799bdaffba2e166e8ca8858512e3c0bd665d-primary.xml.zst
zypper95%

gd-devel 2.3.3-4.7

Drawing Library for Programs with PNG and JPEG Output

https://libgd.github.io/

sudo zypper install gd-devel
  • License: MIT
  • Category: Unspecified
  • Architecture: x86_64
  • Source Package: gd
  • 4 依赖
  • 2 提供
  • normalized package name match
  • 匹配方式:Gd
openSUSE Tumbleweed package metadata · download.opensuse.org · openSUSE Tumbleweed package metadata: gd-devel from https://download.opensuse.org/tumbleweed/repo/oss/repodata/be8d3611d25469107f32075a1697e69ec57a2b850b42348a658cc671ad5ec2b50760d02c3e59524d50da9a11d5be799bdaffba2e166e8ca8858512e3c0bd665d-primary.xml.zst
zypper95%

gd-devel-32bit 2.3.3-4.7

Drawing Library for Programs with PNG and JPEG Output

https://libgd.github.io/

sudo zypper install gd-devel-32bit
  • License: MIT
  • Category: Unspecified
  • Architecture: x86_64
  • Source Package: gd
  • 2 依赖
  • 1 提供
  • normalized package name match
  • 匹配方式:Gd
openSUSE Tumbleweed package metadata · download.opensuse.org · openSUSE Tumbleweed package metadata: gd-devel-32bit from https://download.opensuse.org/tumbleweed/repo/oss/repodata/be8d3611d25469107f32075a1697e69ec57a2b850b42348a658cc671ad5ec2b50760d02c3e59524d50da9a11d5be799bdaffba2e166e8ca8858512e3c0bd665d-primary.xml.zst
zypper95%

libgd3 2.3.3-4.7

A Drawing Library for Programs That Use PNG and JPEG Output

https://libgd.github.io/

sudo zypper install libgd3
  • License: MIT
  • Category: Unspecified
  • Architecture: x86_64
  • Source Package: gd
  • 12 依赖
  • 2 提供
  • normalized package name match
  • 匹配方式:Gd
openSUSE Tumbleweed package metadata · download.opensuse.org · openSUSE Tumbleweed package metadata: libgd3 from https://download.opensuse.org/tumbleweed/repo/oss/repodata/be8d3611d25469107f32075a1697e69ec57a2b850b42348a658cc671ad5ec2b50760d02c3e59524d50da9a11d5be799bdaffba2e166e8ca8858512e3c0bd665d-primary.xml.zst
zypper95%

libgd3-32bit 2.3.3-4.7

A Drawing Library for Programs That Use PNG and JPEG Output

https://libgd.github.io/

sudo zypper install libgd3-32bit
  • License: MIT
  • Category: Unspecified
  • Architecture: x86_64
  • Source Package: gd
  • 12 依赖
  • 2 提供
  • normalized package name match
  • 匹配方式:Gd
openSUSE Tumbleweed package metadata · download.opensuse.org · openSUSE Tumbleweed package metadata: libgd3-32bit from https://download.opensuse.org/tumbleweed/repo/oss/repodata/be8d3611d25469107f32075a1697e69ec57a2b850b42348a658cc671ad5ec2b50760d02c3e59524d50da9a11d5be799bdaffba2e166e8ca8858512e3c0bd665d-primary.xml.zst

来源线索

由仓库数据生成

此页面由 av-webscripts/generate-pkg-sqlite.py 生成的私有软件包 SQLite 工件提供。

Combined YAML source

View the package source record on GitHub.

combined/gd.yml

使用的来源

  • Geiger risk classifier
  • Nucleus package database
  • av.db category and tag curation
  • cross-ecosystem install command graph
  • curated package history
  • external package-manager database matches
  • package relationship graph
  • package version freshness
  • package-page enrichment