How to install drush

· konordo
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 http://ftp.drupal.org/files/projects/drush-All-versions-3.3.tar.gz
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.