# Installer the_silver_searcher avec Homebrew, apk, dnf, MacPorts, pacman, winget, chocolatey, scoop

Consultez les chemins d'installation, exécutables, métadonnées et notes de sécurité de the_silver_searcher pour les workflows d'agents IA.

## installation

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

Commandes d'installation supplémentaires:

### macOS

- Homebrew (100%):

```sh
brew install the_silver_searcher
```

  Preuve: local Homebrew formula metadata

- MacPorts (94%):

```sh
sudo port install the_silver_searcher
```

  Preuve: 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
```

  Preuve: 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
```

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

- pacman (92%):

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

  Preuve: 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
```

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

- Chocolatey (92%):

```sh
choco install ag
```

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

- Scoop (92%):

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

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

## Faits du paquet

- **Clé du paquet:** brew:the_silver_searcher
- **Gestionnaire de paquets:** Homebrew
- **Version:** 2.2.0
- **Résumé source:** Code-search similar to ack
- **Page d'accueil:** <https://geoff.greer.fm/ag/>
- **Dépôt:** <https://github.com/ggreer/the_silver_searcher>
- **Dernière mise à jour:** 2026-07-14T17:14:18+09:00
- **Généré:** 2026-08-03T19:37:03+00:00

## exécutables

- ag (alias)

## Comportement d'installation

- Bouteille: non disponible

## Version et fraîcheur

- page générée: 2026-08-03
- version du gestionnaire: 2.2.0
## Historique du projet et usages

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.

### Historique du projet

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.

### Historique d'adoption

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.

### Modes d'utilisation

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.

### Pourquoi les passionnés de paquets s'y intéressent

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.

### Chronologie

- 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


## Notes de sécurité

narrow executable package without higher-risk signals.

- **Risque Geiger:** vert / faible
- 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: .ignore, .gitignore, .hgignore
## Autres enregistrements de gestionnaires de paquets

- 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-16.fc45: 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/07190dc5ae9f35ae73866675fed6d95fe6e8d9fe22c9d7cdf85862cb2ed24a4c-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','adobeair'
- 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


## Combined YAML source

View the package source record on GitHub. [combined/the_silver_searcher.yml](https://github.com/mxcl/pkgdb/blob/main/combined/the_silver_searcher.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
