# 使用 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/07190dc5ae9f35ae73866675fed6d95fe6e8d9fe22c9d7cdf85862cb2ed24a4c-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
- **版本:** 0.8.1
- **来源摘要:** Library for manipulation of the macOS .icns resource format
- **主页:** <https://icns.sourceforge.io/>
- **已生成:** 2026-08-03T19:37:03+00:00

## 可执行文件

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

## 安装行为

- Bottle: 不可用

## 版本和新鲜度

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

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

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

- 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/07190dc5ae9f35ae73866675fed6d95fe6e8d9fe22c9d7cdf85862cb2ed24a4c-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/07190dc5ae9f35ae73866675fed6d95fe6e8d9fe22c9d7cdf85862cb2ed24a4c-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/07190dc5ae9f35ae73866675fed6d95fe6e8d9fe22c9d7cdf85862cb2ed24a4c-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


## 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
- curated package history
- pkgdb category and tag curation
- external package-manager database matches
- cross-ecosystem install command graph
