# 使用 Homebrew, apt, dnf, Nix 安装 sng

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

## 安装

```sh
sudo av install brew:sng
```

其他安装命令:

### macOS

- Homebrew (100%):

```sh
brew install sng
```

  证据: local Homebrew formula metadata

### Linux

- Debian apt (92%):

```sh
sudo apt install sng
```

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

- dnf (92%):

```sh
sudo dnf install sng
```

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

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

## 软件包事实

- **软件包键:** brew:sng
- **软件包管理器:** Homebrew
- **软件包管理器页面:** <https://formulae.brew.sh/formula/sng>
- **版本:** 1.1.1
- **来源摘要:** Enable lossless editing of PNGs via a textual representation
- **主页:** <https://sng.sourceforge.net/>
- **上游文档:** <https://sng.sourceforge.net/>
- **许可证:** Zlib
- **源码归档:** <https://downloads.sourceforge.net/project/sng/sng-1.1.1.tar.xz>
- **已生成:** 2026-08-04T22:13:35+00:00

## 可执行文件

- sng (cli)
- sng (别名)

## 依赖

- libpng
- xorgrgb

## 安装行为

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

## 版本和新鲜度

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

SNG, Scriptable Network Graphics, is a textual representation for PNG files plus a compiler/decompiler named sng. It enables lossless editing of PNG structure and ancillary chunks using text tools.

### 项目历史

The official NEWS file records a private pre-alpha release in December 1999, a public alpha days later, and a 1.0.0 production release in July 2001. The project is maintained by Eric S. Raymond and hosted on SourceForge with an official Git code browser.

### 采用历史

SNG has stayed small but packageable: the official README says the code is commonly packaged as sng, and the supplied package facts list Homebrew, Debian/Ubuntu, Fedora, and Nix packages.

### 使用方式

The sng program translates PNG to SNG and SNG back to PNG. Official documentation emphasizes viewing and editing obscure ancillary chunks and generating PNG content from scripts.

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

SNG is classic Unix packaging material: a small C command-line tool, a man page, a regression test, libpng dependency, and a stable file-format niche that has survived many libpng transitions.

### 时间线

- 1999: Pre-alpha private release and public alpha release.
- 2001: 1.0.0 production release.
- 2015: 1.1.0 release updates libpng compatibility and fixes Mac OS X color database lookup.
- 2024: 1.1.1 improves documentation and drops autoconfig.
- 2026: 1.1.2 release listed on the official resource page.

### Related projects

- The official homepage relates SNG to PNG, libpng, the PNG test suite, and gif2png.

### 来源

- <https://sng.sourceforge.net/>
- <https://sng.sourceforge.net/NEWS.adoc>
- <https://sng.sourceforge.net/README.adoc>
- <https://sourceforge.net/p/sng/code/>
- source_facts.package-manager


## 安全说明

narrow executable package without higher-risk signals.

- **Geiger 风险:** 绿色 / 低
- narrow executable package without higher-risk signals

## 源数据库详情

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

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

- Debian apt - sng - 1.1.1-1: normalized package name match | Debian stable package indexes: sng from https://deb.debian.org/debian/dists/stable/main/binary-amd64/Packages.xz | specialized markup language for representing PNG contents | http://sng.sourceforge.net/
- Nix - sng: normalized package name match | nixpkgs package indexes: pkgs/by-name/sn/sng/package.nix from https://api.github.com/repos/NixOS/nixpkgs/git/trees/master?recursive=1
- Ubuntu apt - sng - 1.1.0-4build2: normalized package name match | Ubuntu 24.04 LTS package indexes: sng from https://archive.ubuntu.com/ubuntu/dists/noble/universe/binary-amd64/Packages.gz | specialized markup language for representing PNG contents | http://sng.sourceforge.net/
- dnf - sng - 1.1.2-2.fc45: normalized package name match | Fedora Rawhide package metadata: sng from https://dl.fedoraproject.org/pub/fedora/linux/development/rawhide/Everything/x86_64/os/repodata/210a2053c8e007daf9ae39c2a21daaed9b2ddd07d63ecffa597050361e73650c-primary.xml.zst | Lossless editing of PNGs via a textual representation | https://sng.sourceforge.net/


## 相关链接

- [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.
- [Media and graphics packages](https://pkg.so/zh-hans/media-graphics-tools/) - Matched media, image, audio, video, or graphics metadata.
- [libpng](https://pkg.so/zh-hans/brew/libpng/) - Runtime dependency declared by Homebrew.
- [xorgrgb](https://pkg.so/zh-hans/brew/xorgrgb/) - Runtime dependency declared by Homebrew.
- [apngasm](https://pkg.so/zh-hans/brew/apngasm/) - Shares pkgdb curated category or tags: cli, image-processing, media, png.
- [giflib](https://pkg.so/zh-hans/brew/giflib/) - Shares pkgdb curated category or tags: cli, image-processing, media.
- [leptonica](https://pkg.so/zh-hans/brew/leptonica/) - Shares pkgdb curated category or tags: cli, image-processing, media.
- [netpbm](https://pkg.so/zh-hans/brew/netpbm/) - Shares pkgdb curated category or tags: cli, image-processing, media.
- [epsilon](https://pkg.so/zh-hans/brew/epsilon/) - Shares pkgdb curated category or tags: cli, image-processing, media.
- [gifsicle](https://pkg.so/zh-hans/brew/gifsicle/) - Shares pkgdb curated category or tags: cli, image-processing, media.
- [openimageio](https://pkg.so/zh-hans/brew/openimageio/) - Shares pkgdb curated category or tags: cli, image-processing, media.
- [jp2a](https://pkg.so/zh-hans/brew/jp2a/) - Shares pkgdb curated category or tags: cli, image-processing, media, png.
- [libicns](https://pkg.so/zh-hans/brew/libicns/) - Both packages work with overlapping file formats or content types. Shared terms: cli, conversion, format, image, image-processing.

## Combined YAML source

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