How to install Drush on CentOS 6?

What is Drush?

Drush is a command line shell and scripting interface for Drupal, it allows you to perform all kinds of Drupal specific tasks easily from the command line without going through the Drupal interface

To install Drush on CentOS you need to follow these steps:

First you need to make sure pear is installed by running the command

pear version

if it's not installed, you can install it by running the command

yum install php-pear

Then run the following command to allow pear to recognize drush

pear channel-discover

Then install drush using the command

pear install drush/drush

Execute the following command to make sure Drush is sucessfully installed


You should see something similar to this screen

Congratulations! You have sucessfully installed Drush on CentOS

I hope you've enjoyed this tutorial and stay tuned for more to come

Share this post