Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Why can't I run ack from the terminal after I switched from ubuntu to archlinux?

I just switch from ubuntu to archlinux and I installed ack-grep via pacman. However what I found is I can't run $ ack from terminal directy. I have to type $ perl ack , which is a pain...I wonder if anyone hve experienced similar situation and how do you solve it.

Thanks

like image 991
pythoniku Avatar asked Dec 06 '25 08:12

pythoniku


1 Answers

There is no reason to use an alias here. It is perl's job to update $PATH in this case. Seeing that the perl package is included in the base group then at most re-logging in should correct everything.

I've also tested this on my system and pacman -Syu ack (-Syu should always be used when installing).

# pacman -Syu ack

# ack --help (no error)

Also

$ which ack

/usr/bin/vendor_perl/ack

like image 115
cinelli Avatar answered Dec 08 '25 21:12

cinelli