# Install svgo with Homebrew, Nix, pacman

Nodejs-based tool for optimizing SVG vector graphics files. Version 4.0.2 via Homebrew; verified 2026-07-11. Also installable with nix: nix profile install nixpkgs#svgo.

## Install

```sh
sudo av install brew:svgo
```

Additional install commands:

### macOS

- Homebrew (100%):

```sh
brew install svgo
```

  Evidence: local Homebrew formula metadata

### Linux

- Nix (92%):

```sh
nix profile install nixpkgs#svgo
```

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

- pacman (92%):

```sh
sudo pacman -S svgo
```

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

## Package facts

- **Package key:** brew:svgo
- **Package manager:** Homebrew
- **Version:** 4.0.2
- **Source summary:** Nodejs-based tool for optimizing SVG vector graphics files
- **Homepage:** <https://svgo.dev/>
- **Repository:** <https://github.com/svg/svgo>
- **Last updated:** 2026-07-11T21:39:22Z
- **Generated:** 2026-08-03T19:37:03+00:00

## Executables

- svgo (alias)

## Install behavior

- Bottle: not available

## Freshness

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

SVGO is a Node.js library and command-line application for optimizing SVG files. In package-manager culture it sits in the familiar slot of a small, scriptable asset-optimization binary: install it globally or as a project dependency, point it at SVG files or directories, and let build tooling call the same optimizer.

### Project history

The upstream repository describes SVGO as short for SVG Optimizer and says it removes redundant information such as editor metadata, comments, hidden elements, and default or suboptimal SVG values without changing rendering. GitHub repository metadata records the svg/svgo repository as created on 2012-08-22, and the GitHub releases API shows early public releases by 2013.

### Adoption history

SVGO became widely packaged because SVG minification is useful both as a standalone CLI workflow and inside JavaScript asset pipelines. The official usage page lists a command-line application, Node.js library, browser bundle, and webpack loader as supported interfaces, and it points to community integrations such as SVGR, grunt-svgmin, postcss-svgo, and SVGOMG.

### How it is used

The common CLI usage is to run `svgo` on one or more SVG files, process folders recursively, or provide a `svgo.config.mjs` file to tune plugin behavior. The README also shows npm, yarn, and pnpm global installation commands, matching the way many frontend developers treat image optimizers as repeatable project tooling.

### Why package nerds care

Package maintainers care about SVGO because it is both a user-facing executable and a library used by other tools. Its plugin architecture, JavaScript configuration file, and many downstream wrappers make versioning behavior visible in build outputs, so packaging it consistently matters for reproducible web assets.

### Timeline

- 2012: GitHub repository created for svg/svgo.
- 2013: Early GitHub release v0.3.5 published.
- 2026: Official docs list CLI, Node.js, browser, and webpack interfaces.

### Related projects

- The official usage page names SVGR, grunt-svgmin, postcss-svgo, SVGOMG, Oh My SVG, and SVG Gobbler as integrations or frontends around SVGO.

### Sources

- <https://api.github.com/repos/svg/svgo>
- <https://api.github.com/repos/svg/svgo/releases?per_page=100>
- <https://github.com/svg/svgo>
- <https://svgo.dev/docs/usage/>
- source_facts.package-manager


## Security Notes

narrow executable package without higher-risk signals.

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


## Configuration and credential file locations

These source-backed paths show where this package keeps local settings or durable credentials. Automic Vault can use them as review targets for secret scanning, migration, and command approval.


## Configuration files

- Unix: svgo.config.mjs
## Other Package-Manager Records

- Nix - svgo: normalized package name match | nixpkgs package indexes: pkgs/by-name/sv/svgo/package.nix from https://api.github.com/repos/NixOS/nixpkgs/git/trees/master?recursive=1
- pacman - svgo - 4.0.2-1: normalized package name match | Arch Linux sync databases: svgo from https://geo.mirror.pkgbuild.com/extra/os/x86_64/extra.db.tar.gz | Tool for optimizing SVG files | https://github.com/svg/svgo


## Combined YAML source

View the package source record on GitHub. [combined/svgo.yml](https://github.com/mxcl/pkgdb/blob/main/combined/svgo.yml)


## Sources

- pkg.so package database
- Geiger risk classifier
- curated configuration and credential file locations
- curated package history
- pkgdb category and tag curation
- external package-manager database matches
- cross-ecosystem install command graph
