# 使用 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/07190dc5ae9f35ae73866675fed6d95fe6e8d9fe22c9d7cdf85862cb2ed24a4c-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
- **版本:** 1.1.1
- **来源摘要:** Enable lossless editing of PNGs via a textual representation
- **主页:** <https://sng.sourceforge.net/>
- **已生成:** 2026-08-03T19:37:03+00:00

## 可执行文件

- sng (别名)

## 安装行为

- Bottle: 不可用

## 版本和新鲜度

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

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

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

- 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/07190dc5ae9f35ae73866675fed6d95fe6e8d9fe22c9d7cdf85862cb2ed24a4c-primary.xml.zst | Lossless editing of PNGs via a textual representation | https://sng.sourceforge.net/


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