Automic VaultAutomic Vault

brew

Install the_silver_searcher with Homebrew, apk, dnf, MacPorts, pacman, winget, chocolatey, scoop

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

install

Additional install commands

macOS

Homebrewverified · 100%
brew install the_silver_searcher

local Homebrew formula metadata

MacPortsverified · 94%
sudo port install the_silver_searcher

MacPorts ports tree · textproc/the_silver_searcher/Portfile · source: api.github.com

Linux

Alpine Linux apkverified · 92%
sudo apk add the_silver_searcher

Alpine Linux edge package indexes · the_silver_searcher · source: dl-cdn.alpinelinux.org

Fedora dnfverified · 92%
sudo dnf install the_silver_searcher

Fedora Rawhide package metadata · the_silver_searcher · source: dl.fedoraproject.org

Arch Linux pacmanverified · 92%
sudo pacman -S the_silver_searcher

Arch Linux sync databases · the_silver_searcher · source: geo.mirror.pkgbuild.com

overview

Package summary

Code-search similar to ack

Commands and aliases

  • ag

history

Project history and usage

The Silver Searcher, usually invoked as `ag`, is a code-search command created by Geoff Greer. The official project page says it started as a clone of Ack and later diverged, while the README describes it as a code-searching tool similar to ack with a focus on speed.

Project history

Ag belongs to the generation of developer tools that tried to replace recursive grep with project-aware, ignore-file-aware code search. Its README credits Ack as the predecessor and says that without Ack, Ag would not exist.

The project gained identity through performance work. The README reports benchmark results where Ag found the same results as Ack while searching far less data because it respected git, hg, and ignore files; it also documents implementation choices such as pthreads, mmap, Boyer-Moore literal search, and PCRE JIT support.

Greer's official page provides signed release tarballs and links to performance graphs across releases, which reflects the project's longstanding emphasis on measurable speed rather than only feature breadth.

Adoption history

Ag became broadly packaged across Unix-like systems. The README documents Homebrew and MacPorts on macOS; apt, yum, dnf, emerge, pacman, zypper, Nix, and other Linux paths; BSD packages; and Windows package routes including winget, Chocolatey, MSYS2, and Cygwin.

The Homebrew input mirrors that broad adoption with packages recorded for Alpine, Homebrew, Chocolatey, Fedora/DNF, MacPorts, Arch, Scoop, and winget. That distribution spread is a strong signal that Ag became a common developer workstation dependency rather than a single-ecosystem utility.

How it is used

Developers use `ag` to recursively search source trees while automatically respecting `.gitignore`, `.hgignore`, and project-specific `.ignore` files. The README also documents editor integrations for Vim, Emacs, and TextMate, showing its role as both a shell command and an editor backend.

Ag was commonly used as a faster ack replacement before ripgrep became dominant in many setups. Its attraction was a short command name, parallel search, ignore-file awareness, and easy installation through the package manager already used on the workstation.

Why package nerds care

The Silver Searcher is a classic package-nerd tool because the package name, executable name, and cultural name differ: Homebrew installs `the_silver_searcher`, but users type `ag`, the chemical symbol for silver. That naming quirk is part of its lore.

It also marks an important step in the code-search lineage from grep to ack to ag to ripgrep. The README itself points users to Ack, git-grep, fzf, ripgrep, and Sack, making the project a hub in the modern command-line search ecosystem.

Timeline

  • 2012: README links document performance work such as benchmarking revisions and adding pthreads.
  • 2014: README links to Greer's invitation for contributors to pair on Ag 1.0.
  • 2010s: Official page publishes signed release tarballs through version 2.2.0.
  • 2020: README notes winget as a Windows package-manager path while describing it as beta at that time.

Related projects

  • Ack is the direct predecessor named by the official page and README.
  • The README lists ack.vim, Exuberant Ctags, git-grep, fzf, ripgrep, and Sack as related tools users might like.
  • The Platinum Searcher is a later related code-search tool that explicitly compares itself to ag.

Sources

  • Official README: https://github.com/ggreer/the_silver_searcher#readme
  • Official performance page linked from project page: https://geoff.greer.fm/ag/speed/
  • Official project page: https://geoff.greer.fm/ag/
  • source_facts.package-manager

security posture

Risk level: green

narrow executable package without higher-risk signals.

Risk classifier

green risk · low confidence · appliance

Why

  • narrow executable package without higher-risk signals

Signals

  • metadata:no-higher-risk-signals

Install behavior

  • No Homebrew post-install hook is recorded in formula metadata.
  • Homebrew bottle metadata is available for 6 platform targets.
  • Installs with 2 runtime dependencies.
  • Build metadata lists 3 build dependencies.

Recommended review

Before unattended agent use, check whether the tool reads plaintext credentials, writes remote state, publishes artifacts, or shells out to plugins.

local files

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

Config paths the tool may read or write during local use.

Unix
.ignore.gitignore.hgignore

executables

Installed executables

CommandKindExposureNote
agcliglobal executable

freshness

Version and freshness

These signals separate page generation age, package-manager activity, and upstream release comparison. Version lag is warned only when an evidence URL and comparable versions are present.

page generated2026-07-08
manager version2.2.0
manager updated
local dataok
upstreamcurrent
latest detected2.2.0

https://github.com/ggreer/the_silver_searcher

  • infoNo package-manager update timestamp was available.low confidence

install metadata

Package metadata

Package keybrew:the_silver_searcher
Version2.2.0
Package managerHomebrew
Package manager pagehttps://formulae.brew.sh/formula/the_silver_searcher
Homepagehttps://geoff.greer.fm/ag/
Repositoryhttps://github.com/ggreer/the_silver_searcher
Upstream docshttps://geoff.greer.fm/ag
LicenseApache-2.0
Source archivehttps://github.com/ggreer/the_silver_searcher/archive/refs/tags/2.2.0.tar.gz
Dependenciespcre2, xz
Build dependenciesautoconf, automake, pkgconf
Bottleavailable (on arm64_linux, arm64_sequoia, arm64_sonoma, arm64_tahoe, sonoma, x86_64_linux)
Homebrew post-installnot defined
Servicenone declared

registry facts

Source database details

Source DatabaseHomebrew formula API
Taphomebrew/core
Full Namethe_silver_searcher
Aliases
  • ag
Version Scheme0
Revision0
Head VersionHEAD
Bottle Stable Root URLhttps://ghcr.io/v2/homebrew/core
Deprecatedno
Disabledno
Keg Onlyno
URL Keys
  • head
  • stable

source database matches

Other package-manager records

Matches are pulled from external package-manager indexes and kept separate from local Automic Vault package links.

apk95%

the_silver_searcher 2.2.0-r1

A code searching tool similar to ack, with a focus on speed.

https://geoff.greer.fm/ag/

sudo apk add the_silver_searcher
  • License: Apache-2.0
  • Architecture: x86_64
  • Source Package: the_silver_searcher
  • 1 dependencies
  • 1 provides
  • normalized package name match
  • Matched by: The Silver Searcher
Alpine Linux edge package indexes · dl-cdn.alpinelinux.org · Alpine Linux edge package indexes: the_silver_searcher from https://dl-cdn.alpinelinux.org/alpine/edge/community/x86_64/APKINDEX.tar.gz
apk95%

the_silver_searcher-bash-completion 2.2.0-r1

Bash completions for the_silver_searcher

https://geoff.greer.fm/ag/

sudo apk add the_silver_searcher-bash-completion
  • License: Apache-2.0
  • Architecture: x86_64
  • Source Package: the_silver_searcher
  • normalized package name match
  • Matched by: The Silver Searcher
Alpine Linux edge package indexes · dl-cdn.alpinelinux.org · Alpine Linux edge package indexes: the_silver_searcher-bash-completion from https://dl-cdn.alpinelinux.org/alpine/edge/community/x86_64/APKINDEX.tar.gz
apk95%

the_silver_searcher-doc 2.2.0-r1

A code searching tool similar to ack, with a focus on speed. (documentation)

https://geoff.greer.fm/ag/

sudo apk add the_silver_searcher-doc
  • License: Apache-2.0
  • Architecture: x86_64
  • Source Package: the_silver_searcher
  • normalized package name match
  • Matched by: The Silver Searcher
Alpine Linux edge package indexes · dl-cdn.alpinelinux.org · Alpine Linux edge package indexes: the_silver_searcher-doc from https://dl-cdn.alpinelinux.org/alpine/edge/community/x86_64/APKINDEX.tar.gz
apk95%

the_silver_searcher-zsh-completion 2.2.0-r1

Zsh completions for the_silver_searcher

https://geoff.greer.fm/ag/

sudo apk add the_silver_searcher-zsh-completion
  • License: Apache-2.0
  • Architecture: x86_64
  • Source Package: the_silver_searcher
  • normalized package name match
  • Matched by: The Silver Searcher
Alpine Linux edge package indexes · dl-cdn.alpinelinux.org · Alpine Linux edge package indexes: the_silver_searcher-zsh-completion from https://dl-cdn.alpinelinux.org/alpine/edge/community/x86_64/APKINDEX.tar.gz
dnf95%

the_silver_searcher 2.2.0^2020704.5a1c8d8-15.fc44

Super-fast text searching tool (ag)

https://github.com/ggreer/the_silver_searcher

sudo dnf install the_silver_searcher
  • License: Apache-2.0
  • Category: Unspecified
  • Architecture: x86_64
  • Source Package: the_silver_searcher
  • 5 dependencies
  • 2 provides
  • normalized package name match
  • Matched by: The Silver Searcher
Fedora Rawhide package metadata · dl.fedoraproject.org · Fedora Rawhide package metadata: the_silver_searcher from https://dl.fedoraproject.org/pub/fedora/linux/development/rawhide/Everything/x86_64/os/repodata/e5ca8ce900cd68f5419e1c39ae517343100b306336cbaeb70a3c153121d95094-primary.xml.zst
pacman95%

the_silver_searcher 2.2.0-4

Code searching tool similar to Ack, but faster

https://github.com/aswild/the_silver_searcher

sudo pacman -S the_silver_searcher
  • License: Apache-2.0
  • Architecture: x86_64
  • 2 dependencies
  • normalized package name match
  • Matched by: The Silver Searcher
Arch Linux sync databases · geo.mirror.pkgbuild.com · Arch Linux sync databases: the_silver_searcher from https://geo.mirror.pkgbuild.com/extra/os/x86_64/extra.db.tar.gz
MacPorts95%

the_silver_searcher

sudo port install the_silver_searcher
  • normalized package name match
  • Matched by: The Silver Searcher
MacPorts ports tree · api.github.com · MacPorts ports tree: textproc/the_silver_searcher/Portfile from https://api.github.com/repos/macports/macports-ports/git/trees/master?recursive=1
winget95%

JFLarvoire.Ag

winget install --id JFLarvoire.Ag -e
  • normalized package name match
  • Matched by: The Silver Searcher
Windows Package Manager source index · cdn.winget.microsoft.com · Windows Package Manager source index: JFLarvoire.Ag from https://cdn.winget.microsoft.com/cache/source.msix
Chocolatey92%

ag

choco install ag
  • installed executable or alias match
  • Matched by: Ag
Chocolatey community package catalog · community.chocolatey.org · Chocolatey community package catalog: ag from http://community.chocolatey.org/api/v2/Packages?$filter=IsLatestVersion&$select=Id&$top=1000&$skiptoken='11','adobedigitaleditions'
Scoop92%

main/ag

scoop install main/ag
  • installed executable or alias match
  • Matched by: Ag
Scoop official bucket manifest trees · api.github.com · Scoop official bucket manifest trees: bucket/ag.json from https://api.github.com/repos/ScoopInstaller/Main/git/trees/master?recursive=1

source trail

Generated from repository data

This page is generated by av-web from the private package SQLite artifact built by scripts/generate-pkg-sqlite.py.

Used sources

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