Skip to content

Instantly share code, notes, and snippets.

@salverde
Forked from rkaneko/InstallingAgOnCentOS.md
Created December 1, 2017 00:02
Show Gist options
  • Save salverde/70830adeb24b6b2d8d17a0c3e6fedcd0 to your computer and use it in GitHub Desktop.
Save salverde/70830adeb24b6b2d8d17a0c3e6fedcd0 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

$ 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