Install ack-grep on CentOS

novo picture novo · Feb 4, 2014 · Viewed 12.7k times · Source

I went through fair amount of google search to install ack-grep on CentOS but I didn't find anything help. I also looked for the source codes but couldn't find it neither. Does anyone know how to install it on the OS?

Thanks a lot.

Answer

lutaoact picture lutaoact · Feb 24, 2014

if you don't have the root permission, you can do as follows:

$ curl https://beyondgrep.com/ack-2.22-single-file > ~/bin/ack && chmod 0755 !#:3

or you can change to root user:

$ sudo su
# curl https://beyondgrep.com/ack-2.22-single-file > /bin/ack && chmod 0755 !#:3