Adam Dinwoodie edited this page Apr 7, 2016 · 30 revisions
Clone this wiki locally

There are several ways to install The Silver Searcher on Windows.

Install using chocolatey (easy)

The chocolatey silver searcher package can be installed using

choco install ag

It will automatically fetch any required dependencies. Note that chocolatey packages are sometimes behind the latest silver searcher release.

Compile using MinGW

Install MinGW and MSYS (download page).

mingw-get install autotools

Install PCRE for Windows. Make sure you install it to /mingw, which is C:\MinGW by default. See the MinGW quickstart guide for more information on paths.


cinst mingw
REM Add C:\mingw\bin to your path.
mingw-get install autotools
git clone git://
cd the_silver_searcher

Native Visual Studio port

Or you can use native Visual Studio port: (compile instructions at:

Using Cygwin

Ag is available as "the_silver_searcher" in the "Utils" category of the main Cygwin distribution. Run the relevant setup-*.exe and select it from the "Select Packages" screen.