- CentOS7.xの場合:EPELリポジトリに入っている
yum install the_silver_searcher --enablerepo=epel
- CentOS6.xの場合
wget http://swiftsignal.com/packages/centos/6/$(uname -i)/the-silver-searcher-0.14-1.el6.x86_64.rpm
sudo yum localinstall the-silver-searcher-0.14-1.el6.x86_64.rpm
- Ubuntu 13.10以降
sudo apt-add-repository ppa:mizuno-as/silversearcher-ag
sudo aptitude update
sudo aptitude install silversearcher-ag
- ソースから
sudo aptitude install -y automake pkg-config libpcre3-dev zlib1g-dev liblzma-dev
git clone https://github.com/ggreer/the_silver_searcher.git
cd the_silver_searcher
./build.sh
sudo make install