How to install drush

In this example, we will install drush under the directory /usr/local/share/. The path is not really important as long as you adjust the following commands accordingly.

If the directories do not exists, we create them:

sudo mkdir /usr/local/share/
sudo mkdir /usr/local/bin/

And now it time to download and extract drush. Make sure that you have the latest version available and replace the url in the command accordingly.

We also create a symlink so that we can use it everywhere without typing the parent path all the time...

cd /usr/local/share/
sudo wget
sudo tar zxvf drush-All-versions-3.3.tar.gz
sudo rm drush-All-versions-3.3.tar.gz
sudo ln -s /usr/local/share/drush/drush /usr/local/bin/drush
sudo drush

And that's it, drush is ready for use. Enjoy.

Drupal 6, Server configuration, CentOS

Recent Comments

Forward by Dries Buytaert, Founder and Project Lead, Drupal; CTO Acquia.

Order now from:

Managing Expectations Podcast with DrupalEasy

Author Interview

We provide the most Shiny Drupal Bits & Pixels

Since Drupal 4.x