# Install the_silver_searcher

Code-search similar to ack. Version 2.2.0 via Homebrew; verified from local package data.

## Install

```sh
sudo av install brew:the_silver_searcher
```

Additional install commands:

### macOS

- Homebrew (100%):

```sh
brew install the_silver_searcher
```

  Evidence: local Homebrew formula metadata

- MacPorts (94%):

```sh
sudo port install the_silver_searcher
```

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

### Linux

- apk (92%):

```sh
sudo apk add the_silver_searcher
```

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

- dnf (92%):

```sh
sudo dnf install the_silver_searcher
```

  Evidence: Fedora Rawhide package metadata: the_silver_searcher from https://dl.fedoraproject.org/pub/fedora/linux/development/rawhide/Everything/x86_64/os/repodata/13ee7b80cb813542594d4235c4a0b8695435d5ecf23dd3580bc7515ae1b6180d-primary.xml.zst

- pacman (92%):

```sh
sudo pacman -S the_silver_searcher
```

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

### Windows

- winget (92%):

```sh
winget install --id JFLarvoire.Ag -e
```

  Evidence: Windows Package Manager source index: JFLarvoire.Ag from https://cdn.winget.microsoft.com/cache/source.msix

- Chocolatey (92%):

```sh
choco install ag
```

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

- Scoop (92%):

```sh
scoop install main/ag
```

  Evidence: Scoop official bucket manifest trees: bucket/ag.json from https://api.github.com/repos/ScoopInstaller/Main/git/trees/master?recursive=1

## Package Facts

- **Package key:** brew:the_silver_searcher
- **Package manager:** Homebrew
- **Package manager URL:** <https://formulae.brew.sh/formula/the_silver_searcher>
- **Version:** 2.2.0
- **Source summary:** Code-search similar to ack
- **Homepage:** <https://geoff.greer.fm/ag/>
- **Repository:** <https://github.com/ggreer/the_silver_searcher>
- **Upstream docs:** <https://geoff.greer.fm/ag>
- **License:** Apache-2.0
- **Source archive:** <https://github.com/ggreer/the_silver_searcher/archive/refs/tags/2.2.0.tar.gz>
- **Generated:** 2026-06-10T07:18:26+00:00

## Executables

- ag (cli)
- ag (alias)

## Dependencies

- pcre2
- xz

## Build Dependencies

- autoconf
- automake
- pkgconf

## 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-06-10
- Package-manager version: 2.2.0
- Local data status: ok
- Upstream repository: https://github.com/ggreer/the_silver_searcher
- Upstream latest detected: 2.2.0 (current)
- info: No package-manager update timestamp was available.

## 安全说明

narrow executable package without higher-risk signals.

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

## Source Database Details

- **Source Database:** Homebrew formula API
- **Tap:** homebrew/core
- **Full Name:** the_silver_searcher
- **Aliases:** ag
- **Version Scheme:** 0
- **Revision:** 0
- **Head Version:** HEAD
- **Bottle Stable Root URL:** <https://ghcr.io/v2/homebrew/core>
- **Deprecated:** no
- **Disabled:** no
- **Keg Only:** no
- **URL Keys:** head, stable

## Other Package-Manager Records

- apk - the_silver_searcher - 2.2.0-r1: normalized package name match | Alpine Linux edge package indexes: the_silver_searcher from https://dl-cdn.alpinelinux.org/alpine/edge/community/x86_64/APKINDEX.tar.gz | A code searching tool similar to ack, with a focus on speed. | https://geoff.greer.fm/ag/
- apk - the_silver_searcher-bash-completion - 2.2.0-r1: normalized package name match | Alpine Linux edge package indexes: the_silver_searcher-bash-completion from https://dl-cdn.alpinelinux.org/alpine/edge/community/x86_64/APKINDEX.tar.gz | Bash completions for the_silver_searcher | https://geoff.greer.fm/ag/
- apk - the_silver_searcher-doc - 2.2.0-r1: normalized package name match | Alpine Linux edge package indexes: the_silver_searcher-doc from https://dl-cdn.alpinelinux.org/alpine/edge/community/x86_64/APKINDEX.tar.gz | A code searching tool similar to ack, with a focus on speed. (documentation) | https://geoff.greer.fm/ag/
- apk - the_silver_searcher-zsh-completion - 2.2.0-r1: normalized package name match | Alpine Linux edge package indexes: the_silver_searcher-zsh-completion from https://dl-cdn.alpinelinux.org/alpine/edge/community/x86_64/APKINDEX.tar.gz | Zsh completions for the_silver_searcher | https://geoff.greer.fm/ag/
- dnf - the_silver_searcher - 2.2.0^2020704.5a1c8d8-15.fc44: normalized package name match | Fedora Rawhide package metadata: the_silver_searcher from https://dl.fedoraproject.org/pub/fedora/linux/development/rawhide/Everything/x86_64/os/repodata/13ee7b80cb813542594d4235c4a0b8695435d5ecf23dd3580bc7515ae1b6180d-primary.xml.zst | Super-fast text searching tool (ag) | https://github.com/ggreer/the_silver_searcher
- pacman - the_silver_searcher - 2.2.0-4: normalized package name match | Arch Linux sync databases: the_silver_searcher from https://geo.mirror.pkgbuild.com/extra/os/x86_64/extra.db.tar.gz | Code searching tool similar to Ack, but faster | https://github.com/aswild/the_silver_searcher
- MacPorts - the_silver_searcher: normalized package name match | MacPorts ports tree: textproc/the_silver_searcher/Portfile from https://api.github.com/repos/macports/macports-ports/git/trees/master?recursive=1
- winget - JFLarvoire.Ag: normalized package name match | Windows Package Manager source index: JFLarvoire.Ag from https://cdn.winget.microsoft.com/cache/source.msix
- Chocolatey - ag: installed executable or alias match | Chocolatey community package catalog: ag from http://community.chocolatey.org/api/v2/Packages?$filter=IsLatestVersion&$select=Id&$top=1000&$skiptoken='11','adobedigitaleditions'
- Scoop - main/ag: installed executable or alias match | Scoop official bucket manifest trees: bucket/ag.json from https://api.github.com/repos/ScoopInstaller/Main/git/trees/master?recursive=1


## Related Links

- [Terminal utility packages](https://www.automicvault.com/zh-hans/pkg/terminal-utilities/) - Matched terminal and command-line workflow metadata.
- [Text processing packages](https://www.automicvault.com/zh-hans/pkg/text-processing-tools/) - Matched text, document, or structured-data processing metadata.
- [Developer build packages](https://www.automicvault.com/zh-hans/pkg/developer-build-tools/) - Matched build, compiler, generator, or developer workflow metadata.
- [Networking and protocol packages](https://www.automicvault.com/zh-hans/pkg/networking-protocol-tools/) - Matched network, protocol, or remote-service metadata.
- [xz](https://www.automicvault.com/zh-hans/pkg/brew/xz/) - Runtime dependency declared by Homebrew.
- [pcre2](https://www.automicvault.com/zh-hans/pkg/brew/pcre2/) - Runtime dependency declared by Homebrew.
- [pkgconf](https://www.automicvault.com/zh-hans/pkg/brew/pkgconf/) - Build dependency declared by Homebrew.
- [autoconf](https://www.automicvault.com/zh-hans/pkg/brew/autoconf/) - Build dependency declared by Homebrew.
- [automake](https://www.automicvault.com/zh-hans/pkg/brew/automake/) - Build dependency declared by Homebrew.
- [fzf](https://www.automicvault.com/zh-hans/pkg/brew/fzf/) - Shares av.db curated category or tags: cli, developer-tools, search.
- [ripgrep](https://www.automicvault.com/zh-hans/pkg/brew/ripgrep/) - Shares av.db curated category or tags: cli, developer-tools, search.
- [grep](https://www.automicvault.com/zh-hans/pkg/brew/grep/) - Shares av.db curated category or tags: cli, developer-tools, search.
- [ugrep](https://www.automicvault.com/zh-hans/pkg/brew/ugrep/) - Shares av.db curated category or tags: cli, developer-tools, search.
- [sk](https://www.automicvault.com/zh-hans/pkg/brew/sk/) - Shares av.db curated category or tags: cli, developer-tools, search.
- [ripgrep-all](https://www.automicvault.com/zh-hans/pkg/brew/ripgrep-all/) - Shares av.db curated category or tags: cli, developer-tools, search.
- [ddgr](https://www.automicvault.com/zh-hans/pkg/brew/ddgr/) - Shares av.db curated category or tags: cli, developer-tools, search.
- [comby](https://www.automicvault.com/zh-hans/pkg/brew/comby/) - Shares av.db curated category or tags: cli, code-search, developer-tools, search.
- [ack](https://www.automicvault.com/zh-hans/pkg/brew/ack/) - Local package facts share a topical domain. Shared terms: ack, cli, code, code-search, developer.

## Sources

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