Skip to content

Instantly share code, notes, and snippets.

@ageek
Forked from rkaneko/InstallingAgOnCentOS.md
Last active April 28, 2020 06:22
Show Gist options
  • Save ageek/d3c5567b1ab2e6337c2a03bb61d03757 to your computer and use it in GitHub Desktop.
Save ageek/d3c5567b1ab2e6337c2a03bb61d03757 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

$ 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