ag is my favorite code search tool, in the whole wide world.
Here’s how to install it on your ARM devices:
# Debian/Ubuntu/Raspberry Pi OS apt update -y apt install build-essential autoconf pkg-config libpcre3-dev liblzma-dev -y wget https://github.com/ggreer/the_silver_searcher/archive/2.0.0.tar.gz tar -xzvf 2.0.0.tar.gz cd the_silver_searcher-2.0.0 export PCRE_CFLAGS=-I/usr/include/pcre ./build.sh make install
And on CentOS/RHEL:
# CentOS/RHEL yum -y groupinstall "Development Tools" yum -y install pcre-devel xz-devel zlib-devel wget https://github.com/ggreer/the_silver_searcher/archive/2.0.0.tar.gz tar -xzvf 2.0.0.tar.gz cd the_silver_searcher-2.0.0 ./build.sh make install
And on Arch based:
# install from community sudo pacman -S the_silver_searcher # or install yay git clone https://aur.archlinux.org/yay.git cd yay makepkg -si yay silver searcher