Skip to content

Instantly share code, notes, and snippets.

@cfriedli
Forked from rkaneko/InstallingAgOnCentOS.md
Last active July 29, 2021 12:42
Show Gist options
  • Save cfriedli/f7ec625effcee7f23dde1f98cef39d2c to your computer and use it in GitHub Desktop.
Save cfriedli/f7ec625effcee7f23dde1f98cef39d2c 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 automake

$ sudo yum install xz-devel

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

$ cd the_silver_searcher

$ sudo ./build.sh

$ sudo make install

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment