# Install sng with Homebrew, apt, dnf, Nix

Enable lossless editing of PNGs via a textual representation. Version 1.1.1 via Homebrew; verified from local package data. Also installable with debian: sudo apt install sng.

## Install

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

Additional install commands:

### macOS

- Homebrew (100%):

```sh
brew install sng
```

  Evidence: local Homebrew formula metadata

### Linux

- Debian apt (92%):

```sh
sudo apt install sng
```

  Evidence: 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
```

  Evidence: 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
```

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

## Package facts

- **Package key:** brew:sng
- **Package manager:** Homebrew
- **Version:** 1.1.1
- **Source summary:** Enable lossless editing of PNGs via a textual representation
- **Homepage:** <https://sng.sourceforge.net/>
- **Generated:** 2026-08-03T19:37:03+00:00

## Executables

- sng (alias)

## Install behavior

- Bottle: not available

## Freshness

- Page generated: 2026-08-03
- Package-manager version: 1.1.1
## Project history and usage

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.

### Project history

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.

### Adoption history

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.

### How it is used

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.

### Why package nerds care

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.

### Timeline

- 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.

### Sources

- <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


## Security Notes

narrow executable package without higher-risk signals.

- **Geiger risk:** green / low
- narrow executable package without higher-risk signals

## Other Package-Manager Records

- 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)


## Sources

- 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
