How to install silversearcher-ag without sudo
This will install ag aka the silver searcher in your home directory ($HOME/usr), without needing sudo.
build_ag.sh
git clone -b 2.2.0 https://github.com/ggreer/the_silver_searcher.git
cd the_silver_searcher
./autogen.sh
./build.sh --prefix=$HOME/usr
make installIf you have $HOME/usr/bin in your $PATH, you can now use ag as usual.
Check out similar posts by category:
Linux
If this post helped you, please consider buying me a coffee or donating via PayPal to support research & publishing of new posts on TechOverflow