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