How to install Drush server-wide in less than one minute
Having Drush installed server wide is handy, especially if you have several users logging on the server. Use the appropriate url for the tarball, you can find the latest release of drush at http://drupal.org/project/drush. The lines below assume you have sudo access. If you don't, please check the README.txt file for other options. The commands below have been tested successfully on debian and ubuntu and should work for most *NIX systems.
cd /usr/local/share/
sudo wget http://ftp.drupal.org/files/projects/drush-All-versions-3.0.tar.gz
sudo tar zxvf drush-All-versions-3.0.tar.gz
sudo rm drush-All-versions-3.0.tar.gz
sudo ln -s /usr/local/share/drush/drush /usr/local/bin/drush
sudo drush
The last line is for Drush to auto download the required table.inc library. If it displays a list of drush command, it means drush was installed successfully!
Some machines might not have the right folders created, so either update the paths above to match your environment, or use touch to create them:
sudo mkdir /usr/local/share/
sudo mkdir /usr/local/bin/

Comments
Add new comment