# Install librsvg with Homebrew, apk, apt, MacPorts, Nix, pacman, zypper, chocolatey

Library to render SVG files using Cairo. Version 2.62.3 via Homebrew; verified 2026-06-22.

## Install

```sh
sudo av install brew:librsvg
```

Additional install commands:

### macOS

- Homebrew (100%):

```sh
brew install librsvg
```

  Evidence: local Homebrew formula metadata

- MacPorts (94%):

```sh
sudo port install librsvg
```

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

### Linux

- apk (92%):

```sh
sudo apk add librsvg
```

  Evidence: Alpine Linux edge package indexes: librsvg from https://dl-cdn.alpinelinux.org/alpine/edge/community/x86_64/APKINDEX.tar.gz

- Debian apt (92%):

```sh
sudo apt install gir1.2-rsvg-2.0
```

  Evidence: Debian stable package indexes: gir1.2-rsvg-2.0 from https://deb.debian.org/debian/dists/stable/main/binary-amd64/Packages.xz

- Nix (92%):

```sh
nix profile install nixpkgs#librsvg
```

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

- pacman (92%):

```sh
sudo pacman -S librsvg
```

  Evidence: Arch Linux sync databases: librsvg from https://geo.mirror.pkgbuild.com/extra/os/x86_64/extra.db.tar.gz

- zypper (92%):

```sh
sudo zypper install librsvg-2-2
```

  Evidence: openSUSE Tumbleweed package metadata: librsvg-2-2 from https://download.opensuse.org/tumbleweed/repo/oss/repodata/be8d3611d25469107f32075a1697e69ec57a2b850b42348a658cc671ad5ec2b50760d02c3e59524d50da9a11d5be799bdaffba2e166e8ca8858512e3c0bd665d-primary.xml.zst

### Windows

- Chocolatey (92%):

```sh
choco install rsvg-convert
```

  Evidence: Chocolatey community package catalog: rsvg-convert from http://community.chocolatey.org/api/v2/Packages?$filter=IsLatestVersion&$select=Id&$top=1000&$skiptoken='11','reportgenerator.portable'

## Package facts

- **Package key:** brew:librsvg
- **Package manager:** Homebrew
- **Package manager page:** <https://formulae.brew.sh/formula/librsvg>
- **Version:** 2.62.3
- **Source summary:** Library to render SVG files using Cairo
- **Homepage:** <https://wiki.gnome.org/Projects/LibRsvg>
- **Repository:** <https://gitlab.gnome.org/GNOME/librsvg>
- **Upstream docs:** <https://gnome.pages.gitlab.gnome.org/librsvg>
- **License:** LGPL-2.1-or-later
- **Source archive:** <https://download.gnome.org/sources/librsvg/2.62/librsvg-2.62.3.tar.xz>
- **Last updated:** 2026-06-22T14:05:21-07:00
- **Generated:** 2026-07-08T07:18:31+00:00

## Executables

- rsvg-convert (cli)
- rsvg-convert (alias)

## Dependencies

- cairo
- fontconfig
- freetype
- gdk-pixbuf
- gettext
- glib
- harfbuzz
- libpng
- pango

## Build dependencies

- cargo-c
- gobject-introspection
- meson
- ninja
- pkgconf
- rust

## Uses from macOS

- libxml2

## Install behavior

- Post-install hook: not defined
- Bottle: available on arm64_linux, arm64_sequoia, arm64_sonoma, arm64_tahoe, sonoma, x86_64_linux

## Freshness

- Page generated: 2026-07-08
- Package-manager version: 2.62.3
- Package-manager updated: 2026-06-22
- Local data: ok
- Upstream repository: https://wiki.gnome.org/Projects/LibRsvg
- info: Release/tag comparison is only available for GitHub repositories.
## Project history and usage

librsvg is GNOME's long-running SVG rendering library and the source of the rsvg-convert command-line tool. It matters in package-manager culture because a small SVG renderer package often sits underneath icon themes, desktop thumbnailers, documentation builds, and scripts that convert SVG assets into raster or PDF outputs.

### Project history

The librsvg development guide describes the project as starting around 2001, when Eazel needed SVG rendering for Nautilus while SVG itself was still being standardized. Early librsvg used libxml2's SAX parser and libart, then moved to Cairo and grew into a GObject-based GNOME platform library with a stable C API and ABI.

In 2016 the project began porting internals to Rust. By early 2021 the architecture documentation described the implementation as Rust while keeping the public C API and ABI intact, an unusual migration path that let distributions and GNOME consumers keep the same package surface while the internals changed language.

### Adoption history

GNOME documents librsvg as part of the GNOME platform libraries: Gnome Shell uses it for SVG assets such as icons, applications can link to librsvg directly, and a gdk-pixbuf loader lets programs load SVG documents through the same path as raster image formats.

The rsvg-convert executable is documented by the project as a widely used tool whose command-line options are kept stable because many scripts and systems depend on it.

### How it is used

Developers use the C API through librsvg-2.0, use GObject Introspection bindings from other languages, or invoke rsvg-convert to render SVG documents to other formats. Desktop environments also use the gdk-pixbuf SVG loader and thumbnailer artifacts produced by the build.

### Why package nerds care

librsvg is a classic small-but-foundational package: it pulls together XML parsing, CSS/SVG rendering, Cairo output, GNOME ABI stability, Rust internals, and a CLI converter. Packagers care about it because SVG rendering regressions can show up as broken icons, bad documentation assets, or failed build pipelines far from the library itself.

### Timeline

- 2001: Started around Eazel and Nautilus to render SVG images in GNOME.
- 2013: The 2.40.0 tag began a long stable release series.
- 2016: Rust porting work began inside the project.
- 2017: The 2.41.0 tag opened the Rust-era development series.
- 2021: Project architecture documentation described the library implementation as Rust with the C API and ABI preserved.
- 2023: Version 2.57.0 made librsvg available as a regular Rust crate on crates.io.

### Related projects

- Related projects include GNOME, Nautilus, Cairo, libxml2, gdk-pixbuf, crates.io, and the SVG specification.

### Sources

- <https://gitlab.gnome.org/GNOME/librsvg>
- <https://gnome.pages.gitlab.gnome.org/librsvg/Rsvg-2.0/index.html>
- <https://gnome.pages.gitlab.gnome.org/librsvg/devel-docs/architecture.html>
- <https://gnome.pages.gitlab.gnome.org/librsvg/devel-docs/product.html>


## Security Notes

No matching local secret-handling manifest was found for librsvg. Nucleus package metadata is still published here so future coverage has a stable package URL.


## Source Database Details

- **Source Database:** Homebrew formula API
- **Tap:** homebrew/core
- **Full Name:** librsvg
- **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

## Other Package-Manager Records

- Debian apt - gir1.2-rsvg-2.0 - 2.60.0+dfsg-1: normalized package name match | Debian stable package indexes: gir1.2-rsvg-2.0 from https://deb.debian.org/debian/dists/stable/main/binary-amd64/Packages.xz | gir files for renderer library for SVG files | https://wiki.gnome.org/Projects/LibRsvg
- Debian apt - librsvg2-2 - 2.60.0+dfsg-1: normalized package name match | Debian stable package indexes: librsvg2-2 from https://deb.debian.org/debian/dists/stable/main/binary-amd64/Packages.xz | SAX-based renderer library for SVG files (runtime) | https://wiki.gnome.org/Projects/LibRsvg
- Debian apt - librsvg2-bin - 2.60.0+dfsg-1: normalized package name match | Debian stable package indexes: librsvg2-bin from https://deb.debian.org/debian/dists/stable/main/binary-amd64/Packages.xz | command-line utility to convert SVG files | https://wiki.gnome.org/Projects/LibRsvg
- Debian apt - librsvg2-common - 2.60.0+dfsg-1: normalized package name match | Debian stable package indexes: librsvg2-common from https://deb.debian.org/debian/dists/stable/main/binary-amd64/Packages.xz | SAX-based renderer library for SVG files (extra runtime) | https://wiki.gnome.org/Projects/LibRsvg
- Debian apt - librsvg2-dev - 2.60.0+dfsg-1: normalized package name match | Debian stable package indexes: librsvg2-dev from https://deb.debian.org/debian/dists/stable/main/binary-amd64/Packages.xz | SAX-based renderer library for SVG files (development) | https://wiki.gnome.org/Projects/LibRsvg
- Debian apt - librsvg2-doc - 2.60.0+dfsg-1: normalized package name match | Debian stable package indexes: librsvg2-doc from https://deb.debian.org/debian/dists/stable/main/binary-amd64/Packages.xz | SAX-based renderer library for SVG files (documentation) | https://wiki.gnome.org/Projects/LibRsvg
- Debian apt - librsvg2-tests - 2.60.0+dfsg-1: normalized package name match | Debian stable package indexes: librsvg2-tests from https://deb.debian.org/debian/dists/stable/main/binary-amd64/Packages.xz | automated tests for RSVG library | https://wiki.gnome.org/Projects/LibRsvg
- Nix - librsvg: normalized package name match | nixpkgs package indexes: pkgs/by-name/li/librsvg/package.nix from https://api.github.com/repos/NixOS/nixpkgs/git/trees/master?recursive=1
- Ubuntu apt - gir1.2-rsvg-2.0 - 2.58.0+dfsg-1build1: normalized package name match | Ubuntu 24.04 LTS package indexes: gir1.2-rsvg-2.0 from https://archive.ubuntu.com/ubuntu/dists/noble/main/binary-amd64/Packages.gz | gir files for renderer library for SVG files | https://wiki.gnome.org/Projects/LibRsvg
- Ubuntu apt - librsvg2-2 - 2.58.0+dfsg-1build1: normalized package name match | Ubuntu 24.04 LTS package indexes: librsvg2-2 from https://archive.ubuntu.com/ubuntu/dists/noble/main/binary-amd64/Packages.gz | SAX-based renderer library for SVG files (runtime) | https://wiki.gnome.org/Projects/LibRsvg
- Ubuntu apt - librsvg2-bin - 2.58.0+dfsg-1build1: normalized package name match | Ubuntu 24.04 LTS package indexes: librsvg2-bin from https://archive.ubuntu.com/ubuntu/dists/noble/universe/binary-amd64/Packages.gz | command-line utility to convert SVG files | https://wiki.gnome.org/Projects/LibRsvg
- Ubuntu apt - librsvg2-common - 2.58.0+dfsg-1build1: normalized package name match | Ubuntu 24.04 LTS package indexes: librsvg2-common from https://archive.ubuntu.com/ubuntu/dists/noble/main/binary-amd64/Packages.gz | SAX-based renderer library for SVG files (extra runtime) | https://wiki.gnome.org/Projects/LibRsvg
- Ubuntu apt - librsvg2-dev - 2.58.0+dfsg-1build1: normalized package name match | Ubuntu 24.04 LTS package indexes: librsvg2-dev from https://archive.ubuntu.com/ubuntu/dists/noble/universe/binary-amd64/Packages.gz | SAX-based renderer library for SVG files (development) | https://wiki.gnome.org/Projects/LibRsvg
- Ubuntu apt - librsvg2-doc - 2.58.0+dfsg-1build1: normalized package name match | Ubuntu 24.04 LTS package indexes: librsvg2-doc from https://archive.ubuntu.com/ubuntu/dists/noble/main/binary-amd64/Packages.gz | SAX-based renderer library for SVG files (documentation) | https://wiki.gnome.org/Projects/LibRsvg
- Ubuntu apt - librsvg2-tests - 2.58.0+dfsg-1build1: normalized package name match | Ubuntu 24.04 LTS package indexes: librsvg2-tests from https://archive.ubuntu.com/ubuntu/dists/noble/universe/binary-amd64/Packages.gz | automated tests for RSVG library | https://wiki.gnome.org/Projects/LibRsvg
- apk - librsvg - 2.62.3-r0: normalized package name match | Alpine Linux edge package indexes: librsvg from https://dl-cdn.alpinelinux.org/alpine/edge/community/x86_64/APKINDEX.tar.gz | Library to render SVG images to Cairo surfaces | https://gitlab.gnome.org/GNOME/librsvg


## Related links

- [Terminal utility packages](https://www.automicvault.com/pkg/terminal-utilities/) - Matched terminal and command-line workflow metadata.
- [Networking and protocol packages](https://www.automicvault.com/pkg/networking-protocol-tools/) - Matched network, protocol, or remote-service metadata.
- [Media and graphics packages](https://www.automicvault.com/pkg/media-graphics-tools/) - Matched media, image, audio, video, or graphics metadata.
- [Documentation packages](https://www.automicvault.com/pkg/documentation-tools/) - Matched documentation, manual, or publishing metadata.
- [cairo](https://www.automicvault.com/pkg/brew/cairo/) - Runtime dependency declared by Homebrew.
- [fontconfig](https://www.automicvault.com/pkg/brew/fontconfig/) - Runtime dependency declared by Homebrew.
- [freetype](https://www.automicvault.com/pkg/brew/freetype/) - Runtime dependency declared by Homebrew.
- [gdk-pixbuf](https://www.automicvault.com/pkg/brew/gdk-pixbuf/) - Runtime dependency declared by Homebrew.
- [gettext](https://www.automicvault.com/pkg/brew/gettext/) - Runtime dependency declared by Homebrew.
- [glib](https://www.automicvault.com/pkg/brew/glib/) - Runtime dependency declared by Homebrew.
- [harfbuzz](https://www.automicvault.com/pkg/brew/harfbuzz/) - Runtime dependency declared by Homebrew.
- [libpng](https://www.automicvault.com/pkg/brew/libpng/) - Runtime dependency declared by Homebrew.
- [cargo-c](https://www.automicvault.com/pkg/brew/cargo-c/) - Build dependency declared by Homebrew.
- [gobject-introspection](https://www.automicvault.com/pkg/brew/gobject-introspection/) - Build dependency declared by Homebrew.
- [meson](https://www.automicvault.com/pkg/brew/meson/) - Build dependency declared by Homebrew.
- [ninja](https://www.automicvault.com/pkg/brew/ninja/) - Build dependency declared by Homebrew.
- [chafa](https://www.automicvault.com/pkg/brew/chafa/) - Popular package that depends on this formula.
- [cherrytree](https://www.automicvault.com/pkg/brew/cherrytree/) - Popular package that depends on this formula.
- [czkawka](https://www.automicvault.com/pkg/brew/czkawka/) - Popular package that depends on this formula.
- [efl](https://www.automicvault.com/pkg/brew/efl/) - Popular package that depends on this formula.
- [graphviz](https://www.automicvault.com/pkg/brew/graphviz/) - Popular package that depends on this formula.
- [gstreamer](https://www.automicvault.com/pkg/brew/gstreamer/) - Popular package that depends on this formula.
- [svg2pdf](https://www.automicvault.com/pkg/brew/svg2pdf/) - Shares av.db curated category or tags: cairo, cli, graphics, media, svg.
- [batik](https://www.automicvault.com/pkg/brew/batik/) - Shares av.db curated category or tags: cli, graphics, media, svg.
- [coin3d](https://www.automicvault.com/pkg/brew/coin3d/) - Shares av.db curated category or tags: cli, graphics, graphics-library, media.
- [dicebear](https://www.automicvault.com/pkg/brew/dicebear/) - Shares av.db curated category or tags: cli, graphics, media, svg.

## Combined YAML source

View the package source record on GitHub. [combined/librsvg.yml](https://github.com/automic-vault/db/blob/main/combined/librsvg.yml)


## Sources

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