# 使用 Homebrew, Nix, pacman 安装 svgo

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

## 安装

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

其他安装命令:

### macOS

- Homebrew (100%):

```sh
brew install svgo
```

  证据: local Homebrew formula metadata

### Linux

- Nix (92%):

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

  证据: 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
```

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

## 软件包事实

- **软件包键:** brew:svgo
- **软件包管理器:** Homebrew
- **软件包管理器页面:** <https://formulae.brew.sh/formula/svgo>
- **版本:** 4.0.2
- **来源摘要:** Nodejs-based tool for optimizing SVG vector graphics files
- **主页:** <https://svgo.dev/>
- **仓库:** <https://github.com/svg/svgo>
- **上游文档:** <https://svgo.dev/>
- **许可证:** MIT
- **源码归档:** <https://github.com/svg/svgo/archive/refs/tags/v4.0.2.tar.gz>
- **最后更新:** 2026-07-11T21:39:22Z
- **已生成:** 2026-08-04T22:13:35+00:00

## 可执行文件

- svgo (cli)
- svgo (别名)

## 依赖

- node

## 安装行为

- post-install 钩子: 未定义
- Bottle: 可用 于 all

## 版本和新鲜度

- 页面生成时间: 2026-08-04
- 管理器版本: 4.0.2
- 管理器更新时间: 2026-07-11
- 本地数据: OK
- 上游仓库: https://github.com/svg/svgo
- 检测到的最新版本: v4.0.2 (当前)
## 项目历史与用法

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.

### 项目历史

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.

### 采用历史

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.

### 使用方式

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.

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

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.

### 时间线

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

### 来源

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


## 安全说明

narrow executable package without higher-risk signals.

- **Geiger 风险:** 绿色 / 低
- 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
## 源数据库详情

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

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

- 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


## 相关链接

- [Terminal utility packages](https://pkg.so/zh-hans/terminal-utilities/) - Matched terminal and command-line workflow metadata.
- [Language runtime packages](https://pkg.so/zh-hans/language-runtime-packages/) - Matched language runtime, compiler, or interpreter 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.
- [node](https://pkg.so/zh-hans/brew/node/) - Runtime dependency declared by Homebrew.
- [resvg](https://pkg.so/zh-hans/brew/resvg/) - Shares pkgdb curated category or tags: cli, graphics, media, svg.
- [dicebear](https://pkg.so/zh-hans/brew/dicebear/) - Shares pkgdb curated category or tags: cli, graphics, media, svg.
- [libemf2svg](https://pkg.so/zh-hans/brew/libemf2svg/) - Shares pkgdb curated category or tags: cli, graphics, media, svg.
- [batik](https://pkg.so/zh-hans/brew/batik/) - Shares pkgdb curated category or tags: cli, graphics, media, svg.
- [svg2pdf](https://pkg.so/zh-hans/brew/svg2pdf/) - Shares pkgdb curated category or tags: cli, graphics, media, svg.
- [scour](https://pkg.so/zh-hans/brew/scour/) - Shares pkgdb curated category or tags: cli, media, optimizer, svg.
- [freetype](https://pkg.so/zh-hans/brew/freetype/) - Shares pkgdb curated category or tags: cli, graphics, media.
- [little-cms2](https://pkg.so/zh-hans/brew/little-cms2/) - Shares pkgdb curated category or tags: cli, graphics, media.
- [svgo](https://pkg.so/zh-hans/npm/svgo/) - Same normalized package name appears in another local ecosystem. Shared terms: cli, graphics, media, node, nodejs.
- [svgo-browser](https://pkg.so/zh-hans/npm/svgo-browser/) - Executable or command metadata overlaps with this package. Shared terms: cli, graphics, media, node, nodejs.
- [svg-sprite](https://pkg.so/zh-hans/npm/svg-sprite/) - Both packages touch the same language runtime or ecosystem. Shared terms: cli, files, graphics, media, node.
- [svgo](https://pkg.so/zh-hans/npm/svgo/) - Same normalized package name in another local ecosystem.

## Combined YAML source

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


## 来源

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