Automic VaultAutomic Vault

brew

使用 Homebrew, apk, dnf, MacPorts, Nix, pacman, zypper 安装 libpng

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

安装

其他安装命令

macOS

Homebrew已验证 · 100%
brew install libpng

local Homebrew formula metadata

MacPorts已验证 · 94%
sudo port install libpng

MacPorts ports tree · graphics/libpng/Portfile · 来源: api.github.com

Linux

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

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

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

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

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

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

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

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

openSUSE zypper已验证 · 92%
sudo zypper install libpng12-0

openSUSE Tumbleweed package metadata · libpng12-0 · 来源: download.opensuse.org

概览

软件包摘要

Library for manipulating PNG images

命令和别名

  • libpng-config
  • libpng16-config
  • png-fix-itxt
  • pngfix

历史

项目历史与用法

libpng is the official Portable Network Graphics reference library. It is the C library most closely associated with reading, writing, testing, and demonstrating PNG behavior across free and proprietary software.

项目历史

libpng began in 1995 during the early PNG effort, when the image format was designed as a patent-unencumbered replacement path for GIF-era workflows. The upstream README credits Guy Eric Schalnat as the original author and former maintainer, followed by Andreas Dilger, Glenn Randers-Pehrson, and Cosmin Truta.

The README's historical notes say libpng was in extensive use and testing from mid-1995, that 0.89 was the first official release in 1996, and that 1.0.0 was released in March 1998 after API churn had settled. Later history focused on keeping the public API stable while hiding internal structures and moving callers toward accessor functions.

采用历史

libpng's adoption follows PNG itself: once PNG became a web and graphics interchange staple, the reference library became a common dependency for image viewers, browsers, toolkits, converters, and build systems.

The upstream home page emphasizes that libpng supports almost all PNG features, is extensible, and has been tested for more than 30 years. That longevity is why distributions treat it as base image infrastructure rather than an optional graphics experiment.

使用方式

Developers use libpng to read, inspect, transform, and write PNG streams from C and C-compatible languages. The package also ships small tools such as `pngfix` and config helpers used by builds.

The manual, example.c, pngtest.c, and bundled test images make libpng both a production library and a reference implementation that other encoders and decoders can compare against.

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

libpng is one of the canonical small C libraries that sits underneath a surprising amount of desktop, web, and server software. Its packaging details matter because a security fix or ABI break can affect a large image-processing dependency graph.

It is also a reference-library package in the strict sense: package maintainers are not just shipping any PNG implementation, but the implementation maintained by the PNG development community as the official reference library.

时间线

  • 1995-03-29: The CHANGES file records libpng version 0.1.
  • 1996-06-05: The CHANGES file records version 0.89, described by the README as the first official release.
  • 1998-03-08: The CHANGES file records version 1.0.0.
  • 2011: The 1.5 line made direct access to png_struct and png_info private, according to the README's historical notes.
  • 2018: The README credits Cosmin Truta as maintainer beginning in 2018.

Related projects

  • PNG is the image format that libpng implements and documents alongside the W3C, RFC, and ISO/IEC specifications.
  • zlib is libpng's compression dependency for DEFLATE data inside PNG files.
  • png-mng-implement is the mailing-list community referenced by upstream for implementation questions.

安全态势

风险级别:绿色

library-like package without higher-risk signals.

风险分类器

绿色 风险 · 低 置信度 · appliance

原因

  • library-like package without higher-risk signals

信号

  • metadata:library-like

安装行为

  • formula 元数据中未记录 Homebrew post-install 钩子。
  • Homebrew bottle 元数据适用于 6 个平台目标。

建议审查

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

可执行文件

已安装的可执行文件

命令类型暴露范围备注
libpng-configcli全局可执行文件
libpng16-configcli全局可执行文件
png-fix-itxtcli全局可执行文件
pngfixcli全局可执行文件

新鲜度

版本和新鲜度

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

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

https://www.libpng.org/pub/png/libpng.html

安装元数据

软件包元数据

软件包键brew:libpng
版本1.6.58
软件包管理器Homebrew
软件包管理器页面https://formulae.brew.sh/formula/libpng
主页https://www.libpng.org/pub/png/libpng.html
仓库https://github.com/pnggroup/libpng
上游文档https://www.libpng.org/pub/png/libpng-manual.txt
许可证libpng-2.0
源码归档https://downloads.sourceforge.net/project/libpng/libpng16/1.6.58/libpng-1.6.58.tar.xz
最后更新2026-07-05T00:14:30+09:00
Pulseupdated
Bottle可用 (于 arm64_linux, arm64_sequoia, arm64_sonoma, arm64_tahoe, sonoma, x86_64_linux)
Homebrew post-install未定义
服务未声明

注册表事实

源数据库详情

Source DatabaseHomebrew formula API
Taphomebrew/core
Full Namelibpng
Version Scheme0
Revision0
Head VersionHEAD
Bottle Stable Root URLhttps://ghcr.io/v2/homebrew/core
Deprecatedno
Disabledno
Keg Onlyno
URL Keys
  • head
  • stable

源数据库匹配

其他软件包管理器记录

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

Nix95%

libpng

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

libpng 1.6.58-r1

Portable Network Graphics library

http://www.libpng.org

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

libpng-dev 1.6.58-r1

Portable Network Graphics library (development files)

http://www.libpng.org

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

libpng-doc 1.6.58-r1

Portable Network Graphics library (documentation)

http://www.libpng.org

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

libpng-static 1.6.58-r1

Portable Network Graphics library (static library)

http://www.libpng.org

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

libpng-utils 1.6.58-r1

Portable Network Graphics library (pngfix utils)

http://www.libpng.org

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

libpng 1.6.58-1.fc45

A library of functions for manipulating PNG image format files

http://www.libpng.org/pub/png/

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

libpng-devel 1.6.58-1.fc45

Development tools for programs to manipulate PNG image format files

http://www.libpng.org/pub/png/

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

libpng-static 1.6.58-1.fc45

Static PNG image format file library

http://www.libpng.org/pub/png/

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

libpng-tools 1.6.58-1.fc45

Tools for PNG image format file library

http://www.libpng.org/pub/png/

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

libpng 1.6.58-1

A collection of routines used to create PNG format graphics files

http://www.libpng.org/pub/png/libpng.html

sudo pacman -S libpng
  • License: libpng-2.0
  • Architecture: x86_64
  • 2 依赖
  • 1 提供
  • normalized package name match
  • 匹配方式:Libpng
Arch Linux sync databases · geo.mirror.pkgbuild.com · Arch Linux sync databases: libpng from https://geo.mirror.pkgbuild.com/extra/os/x86_64/extra.db.tar.gz
zypper95%

libpng12-0 1.2.59-5.2

Library for the Portable Network Graphics Format (PNG)

http://www.libpng.org/pub/png/libpng.html

sudo zypper install libpng12-0
  • License: Zlib
  • Category: System/Libraries
  • Architecture: x86_64
  • Source Package: libpng12
  • 4 依赖
  • 3 提供
  • normalized package name match
  • 匹配方式:Libpng
openSUSE Tumbleweed package metadata · download.opensuse.org · openSUSE Tumbleweed package metadata: libpng12-0 from https://download.opensuse.org/tumbleweed/repo/oss/repodata/be8d3611d25469107f32075a1697e69ec57a2b850b42348a658cc671ad5ec2b50760d02c3e59524d50da9a11d5be799bdaffba2e166e8ca8858512e3c0bd665d-primary.xml.zst
zypper95%

libpng16-16 1.6.57-1.2

Library for the Portable Network Graphics Format (PNG)

http://www.libpng.org/pub/png/libpng.html

sudo zypper install libpng16-16
  • License: libpng-2.0
  • Category: Unspecified
  • Architecture: x86_64
  • Source Package: libpng16
  • 4 依赖
  • 3 提供
  • normalized package name match
  • 匹配方式:Libpng
openSUSE Tumbleweed package metadata · download.opensuse.org · openSUSE Tumbleweed package metadata: libpng16-16 from https://download.opensuse.org/tumbleweed/repo/oss/repodata/be8d3611d25469107f32075a1697e69ec57a2b850b42348a658cc671ad5ec2b50760d02c3e59524d50da9a11d5be799bdaffba2e166e8ca8858512e3c0bd665d-primary.xml.zst
MacPorts95%

libpng

sudo port install libpng
  • normalized package name match
  • 匹配方式:Libpng
MacPorts ports tree · api.github.com · MacPorts ports tree: graphics/libpng/Portfile from https://api.github.com/repos/macports/macports-ports/git/trees/master?recursive=1

来源线索

由仓库数据生成

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

使用的来源

  • 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