Unix & Linux Stack Exchange is a question and answer site for users of Linux, FreeBSD and other Un*x-like operating systems. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

I need to install ack on an instance of whm/cpanel (I have root access as it is a VPS) but I have not found any information on how to do that.

I tried to install it using the WHM RPM manager, but the install failed:

Loaded plugins: fastestmirror
Loading mirror speeds from cached hostfile
 * base: centosk3.centos.org
 * epel: linux.mirrors.es.net
 * extras: centosi5.centos.org
 * updates: ftp.osuosl.org
Excluding Packages in global exclude list
Setting up Install Process
Resolving Dependencies
--> Running transaction check
---> Package ack.noarch 0:1.96-1.el5 set to be updated
--> Processing Dependency: perl(File::Next) >= 0.40 for package: ack
--> Finished Dependency Resolution
ack-1.96-1.el5.noarch from epel has depsolving problems
  --> Missing Dependency: perl(File::Next) >= 0.40 is needed by package ack-1.96-1.el5.noarch (epel)
 You could try using --skip-broken to work around the problem
 You could try running: package-cleanup --problems
                        package-cleanup --dupes
                        rpm -Va --nofiles --nodigest
The program package-cleanup is found in the yum-utils package.

Any advice?

share|improve this question
Did you try any of the solutions? Or manually installing perl(File::Next) manually? – Braiam Feb 6 '14 at 23:53
@Braiam no, because I'm not sure how to try those safely. It is a server with a dozen or so rather active sites, and I don't want to risk destabalising the system just for ack. On the other hand,I definitely need to install ack – Ali Samii Feb 7 '14 at 0:03

It is safe to manually install things from cpan on cPanel hosts. The system modules will not conflict with the modules that cPanel itself uses. You can install ack manually with cpan:

cpan ack
share|improve this answer

I suspect there is something missing on the "fastest mirror" repo that you're pulling from. I would temporarily disable that plugin to see if you're able to get the package perl(File::Next). I just installed ack on CentOS and was able to do so.

To disable a single plugin or all plugins run one of the following yum commands.

$ sudo yum --disableplugin=fastestmirror install ack


$ sudo yum --noplugins install ack
share|improve this answer
cPanel installs a system-wide perl not using an RPM. IIRC it also adds perl or perl* to the yum exclude list. – jordanm Feb 7 '14 at 3:59

Note that you can download ack as a single file that you drop in your ~/bin directory. No root privs needed or CPAN installs necessary.

See http://beyondgrep.com/install/ for details.

share|improve this answer

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.

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