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

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

## 安装

```sh
sudo av install brew:libicns
```

其他安装命令:

### macOS

- Homebrew (100%):

```sh
brew install libicns
```

  证据: local Homebrew formula metadata

- MacPorts (94%):

```sh
sudo port install libicns
```

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

### Linux

- dnf (92%):

```sh
sudo dnf install libicns
```

  证据: Fedora Rawhide package metadata: libicns from https://dl.fedoraproject.org/pub/fedora/linux/development/rawhide/Everything/x86_64/os/repodata/210a2053c8e007daf9ae39c2a21daaed9b2ddd07d63ecffa597050361e73650c-primary.xml.zst

- Nix (92%):

```sh
nix profile install nixpkgs#libicns
```

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

- pacman (92%):

```sh
sudo pacman -S libicns
```

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

- Debian apt (92%):

```sh
sudo apt install icnsutils
```

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

- zypper (92%):

```sh
sudo zypper install icns-utils
```

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

## 软件包事实

- **软件包键:** brew:libicns
- **软件包管理器:** Homebrew
- **软件包管理器页面:** <https://formulae.brew.sh/formula/libicns>
- **版本:** 0.8.1
- **来源摘要:** Library for manipulation of the macOS .icns resource format
- **主页:** <https://icns.sourceforge.io/>
- **上游文档:** <https://icns.sourceforge.io/>
- **许可证:** LGPL-2.0-or-later OR LGPL-2.1-or-later
- **源码归档:** <https://downloads.sourceforge.net/project/icns/libicns-0.8.1.tar.gz>
- **已生成:** 2026-08-04T22:13:35+00:00

## 可执行文件

- icns2png (cli)
- icontainer2icns (cli)
- png2icns (cli)
- icns2png (别名)
- icontainer2icns (别名)
- png2icns (别名)

## 依赖

- jasper
- libpng

## 安装行为

- post-install 钩子: 未定义
- Bottle: 可用 于 arm64_big_sur, arm64_linux, arm64_monterey, arm64_sequoia, arm64_sonoma, arm64_tahoe, arm64_ventura, big_sur, monterey, sonoma, ventura, x86_64_linux

## 版本和新鲜度

- 页面生成时间: 2026-08-04
- 管理器版本: 0.8.1
- 本地数据: OK
- 上游仓库: https://icns.sourceforge.io/
- 信息: No package-manager update timestamp was available.
- 信息: Release/tag comparison is only available for GitHub repositories.
## 项目历史与用法

libicns is a small library and utility set for manipulating Apple's .icns icon resource format outside Apple's native tooling.

### 项目历史

The project page describes libicns as a library for the Mac OS icns resource format, including reading and writing Mac OS X icns files and reading Mac resource files and MacBinary-encoded resource forks.

SourceForge release records show early public tarballs in February 2008, a steady 0.5 and 0.6 series through 2008 and 2009, and the 0.8 line in 2012. Release 0.8.0 added support for PNG icns elements, icon variants, and TOC awareness; release 0.8.1 added 1024x1024 support and packaging/build fixes.

### 采用历史

libicns filled a practical packaging gap for Unix and Linux desktops: converting macOS icon resources into PNGs and generating .icns files without requiring macOS development frameworks.

Its adoption stayed niche, but the utilities icns2png and png2icns made it useful in icon-theme packaging, cross-platform application packaging, and build scripts that needed to consume or emit Apple icon assets.

### 使用方式

Users most often install libicns for the command-line tools icns2png, png2icns, and icontainer2icns, while developers can link the library to read, write, inspect, and assemble icon-family elements.

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

libicns is package-nerd useful because it keeps an old platform-specific binary resource format scriptable on POSIX systems. It is not a glamorous dependency, but it is exactly the sort of tiny converter that keeps cross-platform release automation boring.

### 时间线

- 2008: Early SourceForge tarballs published for the 0.0 and 0.1 series.
- 2009: 0.6 and 0.7 releases improved portability, licensing, and build behavior.
- 2012: 0.8.0 added PNG icns-element support and icon variant handling.
- 2012: 0.8.1 added 1024x1024 support and Debian/build fixes.

### Related projects

- Apple's .icns/IconFamily resource format is the direct file-format target.
- Jasper and OpenJPEG are related through JPEG 2000-backed icon-element support.
- IconFamily is noted by the project as a related Objective-C option for Mac OS X developers.

### 来源

- <https://icns.sourceforge.io/>
- <https://icns.sourceforge.io/apidocs.html>
- <https://sourceforge.net/p/icns/code>
- <https://sourceforge.net/projects/icns/files/>


## 安全说明

infrastructure mutation or orchestration signal.

- **Geiger 风险:** orange / 中
- infrastructure mutation or orchestration signal

## 源数据库详情

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

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

- Debian apt - icnsutils - 0.8.1.83.g921f972-0.1+b2: normalized package name match | Debian stable package indexes: icnsutils from https://deb.debian.org/debian/dists/stable/main/binary-amd64/Packages.xz | utilities for manipulating Mac OS icns files | https://icns.sourceforge.io/
- Debian apt - libicns-dev - 0.8.1.83.g921f972-0.1+b2: normalized package name match | Debian stable package indexes: libicns-dev from https://deb.debian.org/debian/dists/stable/main/binary-amd64/Packages.xz | libicns development files | https://icns.sourceforge.io/
- Debian apt - libicns1 - 0.8.1.83.g921f972-0.1+b2: normalized package name match | Debian stable package indexes: libicns1 from https://deb.debian.org/debian/dists/stable/main/binary-amd64/Packages.xz | library for manipulation of the Mac OS icns format | https://icns.sourceforge.io/
- Nix - libicns: normalized package name match | nixpkgs package indexes: pkgs/by-name/li/libicns/package.nix from https://api.github.com/repos/NixOS/nixpkgs/git/trees/master?recursive=1
- Ubuntu apt - icnsutils - 0.8.1.83.g921f972-0.1build2: normalized package name match | Ubuntu 24.04 LTS package indexes: icnsutils from https://archive.ubuntu.com/ubuntu/dists/noble/universe/binary-amd64/Packages.gz | utilities for manipulating Mac OS icns files | https://icns.sourceforge.io/
- Ubuntu apt - libicns-dev - 0.8.1.83.g921f972-0.1build2: normalized package name match | Ubuntu 24.04 LTS package indexes: libicns-dev from https://archive.ubuntu.com/ubuntu/dists/noble/universe/binary-amd64/Packages.gz | libicns development files | https://icns.sourceforge.io/
- Ubuntu apt - libicns1 - 0.8.1.83.g921f972-0.1build2: normalized package name match | Ubuntu 24.04 LTS package indexes: libicns1 from https://archive.ubuntu.com/ubuntu/dists/noble/universe/binary-amd64/Packages.gz | library for manipulation of the Mac OS icns format | https://icns.sourceforge.io/
- dnf - libicns - 0.8.1-36.fc45: normalized package name match | Fedora Rawhide package metadata: libicns from https://dl.fedoraproject.org/pub/fedora/linux/development/rawhide/Everything/x86_64/os/repodata/210a2053c8e007daf9ae39c2a21daaed9b2ddd07d63ecffa597050361e73650c-primary.xml.zst | Library for manipulating Macintosh icns files | http://icns.sourceforge.net/
- dnf - libicns-devel - 0.8.1-36.fc45: normalized package name match | Fedora Rawhide package metadata: libicns-devel from https://dl.fedoraproject.org/pub/fedora/linux/development/rawhide/Everything/x86_64/os/repodata/210a2053c8e007daf9ae39c2a21daaed9b2ddd07d63ecffa597050361e73650c-primary.xml.zst | Development files for libicns | http://icns.sourceforge.net/
- dnf - libicns-utils - 0.8.1-36.fc45: normalized package name match | Fedora Rawhide package metadata: libicns-utils from https://dl.fedoraproject.org/pub/fedora/linux/development/rawhide/Everything/x86_64/os/repodata/210a2053c8e007daf9ae39c2a21daaed9b2ddd07d63ecffa597050361e73650c-primary.xml.zst | Utilities for libicns | http://icns.sourceforge.net/
- pacman - libicns - 0.8.1-11: normalized package name match | Arch Linux sync databases: libicns from https://geo.mirror.pkgbuild.com/extra/os/x86_64/extra.db.tar.gz | Library for manipulating icns/IconFamily files | https://icns.sourceforge.io/
- zypper - icns-utils - 0.8.1+git20201014-1.23: normalized package name match | openSUSE Tumbleweed package metadata: icns-utils from https://download.opensuse.org/tumbleweed/repo/oss/repodata/50b07339cb64c8ed4091bdbabddadc1ff5737b090e478818a195b40d8a3292861a879139b4a3987c31109699fde9fbf4a716367ddf4eef77da75f96e3193d6ed-primary.xml.zst | Application for manipulation of the Mac OS icns | https://icns.sourceforge.io/
- zypper - libicns-devel - 0.8.1+git20201014-1.23: normalized package name match | openSUSE Tumbleweed package metadata: libicns-devel from https://download.opensuse.org/tumbleweed/repo/oss/repodata/50b07339cb64c8ed4091bdbabddadc1ff5737b090e478818a195b40d8a3292861a879139b4a3987c31109699fde9fbf4a716367ddf4eef77da75f96e3193d6ed-primary.xml.zst | Development files for libicns | https://icns.sourceforge.io/
- zypper - libicns1 - 0.8.1+git20201014-1.23: normalized package name match | openSUSE Tumbleweed package metadata: libicns1 from https://download.opensuse.org/tumbleweed/repo/oss/repodata/50b07339cb64c8ed4091bdbabddadc1ff5737b090e478818a195b40d8a3292861a879139b4a3987c31109699fde9fbf4a716367ddf4eef77da75f96e3193d6ed-primary.xml.zst | System libraries for libicns | https://icns.sourceforge.io/
- MacPorts - libicns: normalized package name match | MacPorts ports tree: graphics/libicns/Portfile from https://api.github.com/repos/macports/macports-ports/git/trees/master?recursive=1


## 相关链接

- [Secret-risk packages](https://pkg.so/zh-hans/secret-risk-packages/) - Has protected-tool coverage, approval-gate, or non-low Geiger security signals.
- [Terminal utility packages](https://pkg.so/zh-hans/terminal-utilities/) - Matched terminal and command-line workflow metadata.
- [Text processing packages](https://pkg.so/zh-hans/text-processing-tools/) - Matched text, document, or structured-data processing metadata.
- [Networking and protocol packages](https://pkg.so/zh-hans/networking-protocol-tools/) - Matched network, protocol, or remote-service metadata.
- [libpng](https://pkg.so/zh-hans/brew/libpng/) - Runtime dependency declared by Homebrew.
- [jasper](https://pkg.so/zh-hans/brew/jasper/) - Runtime dependency declared by Homebrew.
- [makeicns](https://pkg.so/zh-hans/brew/makeicns/) - Shares pkgdb curated category or tags: cli, icns, icons, image-conversion, macos.
- [libheif](https://pkg.so/zh-hans/brew/libheif/) - Shares pkgdb curated category or tags: cli, image-processing, library, media.
- [netpbm](https://pkg.so/zh-hans/brew/netpbm/) - Shares pkgdb curated category or tags: cli, image-conversion, image-processing, media.
- [openimageio](https://pkg.so/zh-hans/brew/openimageio/) - Shares pkgdb curated category or tags: cli, image-processing, library, media.
- [jp2a](https://pkg.so/zh-hans/brew/jp2a/) - Shares pkgdb curated category or tags: cli, image-conversion, image-processing, media.
- [libsail](https://pkg.so/zh-hans/brew/libsail/) - Shares pkgdb curated category or tags: cli, image-processing, library, media.
- [exact-image](https://pkg.so/zh-hans/brew/exact-image/) - Shares pkgdb curated category or tags: cli, image-processing, library, media.
- [open-image-denoise](https://pkg.so/zh-hans/brew/open-image-denoise/) - Shares pkgdb curated category or tags: cli, image-processing, library, media.
- [graphicsmagick](https://pkg.so/zh-hans/brew/graphicsmagick/) - Both packages work with overlapping file formats or content types. Shared terms: cli, conversion, image, image-conversion, image-processing.

## Combined YAML source

View the package source record on GitHub. [combined/libicns.yml](https://github.com/mxcl/pkgdb/blob/main/combined/libicns.yml)


## 来源

- pkg.so package database
- Geiger risk classifier
- package-page enrichment
- curated package history
- package version freshness
- pkgdb category and tag curation
- package relationship graph
- external package-manager database matches
- cross-ecosystem install command graph
