Skip to content

Instantly share code, notes, and snippets.

@001101
Forked from rkaneko/InstallingAgOnCentOS.md
Last active September 15, 2017 17:12
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save 001101/94aa5daf2b817a761e4fc3bdaa941e38 to your computer and use it in GitHub Desktop.
Save 001101/94aa5daf2b817a761e4fc3bdaa941e38 to your computer and use it in GitHub Desktop.
Installing ag: the silver searcher on CentOS (fast file search tool)

Installing ag on CentOS

Prerequistes

  • libpcre
  • liblzma

Download, build and install

$ sudo yum install -y pcre-devel

$ sudo yum install xz-devel

$ cd /usr/local/src

$ sudo git clone https://github.com/ggreer/the_silver_searcher.git

$ cd the_silver_searcher

$ sudo ./build.sh

$ sudo make install

$ which ag
/usr/local/bin/ag
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment