I found a Perl module that is often packaged on Debian. In my case I didn't have access to an updated package manager, but I do have Perl.

So I ran cpan which opened up cpan shell where I entered install App::Ack.

Now I want to run Ack from command line. Can anyone assist with the bash syntax for a relatively new Perl user?

The ubuntu version is used like this: ack 'text-to-find-here'


Ask Perl where it install its modules. When you run perl -V you get message like this:


Add those paths to PATH environment variable and run your program with app/ack or just ack depending on directory structure.

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.