Skip to content

Instantly share code, notes, and snippets.

@ydp
Forked from rkaneko/InstallingAgOnCentOS.md
Last active April 11, 2018 05:19
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 ydp/50722f191fe85059e5e15b65ac092d68 to your computer and use it in GitHub Desktop.
Save ydp/50722f191fe85059e5e15b65ac092d68 to your computer and use it in GitHub Desktop.
Installing ag: the silver searcher on CentOS.

Installing ag on CentOS

Prerequistes

  • libpcre
  • liblzma

Download, build and install

$ sudo yum install -y pcre-devel xz-devel automake

$ 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