Skip to content

Instantly share code, notes, and snippets.

@vimfu
Forked from jsivakumaran/installSilverSearcherOnCentoOS
Last active July 12, 2017 02:53
Show Gist options
  • Save vimfu/90992dea111e35b044708158497bb0c1 to your computer and use it in GitHub Desktop.
Save vimfu/90992dea111e35b044708158497bb0c1 to your computer and use it in GitHub Desktop.
Installing ag on CentOS.md
# 0. Prerequistes
sudo yum install pcre-devel xz-devel zlib-devel -y

# 1. Get the code
cd /usr/local/src
sudo git clone https://github.com/ggreer/the_silver_searcher.git

# 2. Build and install it
cd the_silver_searcher && sudo ./build.sh && sudo make install

# 3. Check it
which ag
# => /usr/local/bin/ag
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment