This article describes how to install Drush manually.
The Drush installation process uses composer, a PHP dependency manager. Therefore, if you have not already installed composer on your account, you must do so before installing Drush.
To install Drush, follow these steps:
composer global require drush/drush:8.x
To install Drush 7, type the following command:
composer global require drush/drush:7.x
Determine the CentOS version on your server. To do this, type the following command:
To add Drush to your path, type one of the following commands based on the CentOS version you obtained in step 3:
echo 'export PATH="$HOME/.config/composer/vendor/bin:$PATH"' >> ~/.bashrc
If your server is running CentOS 6, type the following command:
echo 'export PATH="$HOME/.composer/vendor/bin:$PATH"' >> ~/.bashrc
To make the new path take effect immediately, type the following command:
Drush is now installed and ready to use on your account.
Drush should display the most recent version number (at the time this article is written, version 8.1-dev is the latest version).
To update Drush to the newest version, type the following command:
composer global update
For more information about Drush, please visit http://drush.org.