Install composer globally:
However, the version this currently will give you is 4.5 (using Ubuntu 12.04). Newer versions have many improvements so you should use Drush to upgrade itself to the latest stable:
Then you can check the update has been successful by executing:
You could also install Drush manually by downloading it directly from the project page and following the instructions of the README.txt file.
For Ubuntu 10.04 LTS apt-get will provide 2.0 Drush version, you need to follow Ubuntu help support to enable backports and so have 4.4-1 version available, which can then by upgraded to 5.6 as described above.
Install drush globally (for your user), you can specify the version:$ curl -sS https://getcomposer.org/installer | php $ sudo mv composer.phar /usr/local/bin/composer
While not recommended, Drush can easily be installed on Ubuntu by using Aptitude or apt-get. If you have sudo rights the quickest way to install Drush is from the Ubuntu repository:
$ composer global require drush/drush:7.*
Add the composer path to your path (in your *.bashrc* or *.zshrc* or other):
export PATH="$HOME/.composer/vendor/bin:$PATH"
$ sudo apt-get install drush
However, the version this currently will give you is 4.5 (using Ubuntu 12.04). Newer versions have many improvements so you should use Drush to upgrade itself to the latest stable:
$ sudo drush dl drush --destination='/usr/share'
Then you can check the update has been successful by executing:
$ drush --version
You could also install Drush manually by downloading it directly from the project page and following the instructions of the README.txt file.
For Ubuntu 10.04 LTS apt-get will provide 2.0 Drush version, you need to follow Ubuntu help support to enable backports and so have 4.4-1 version available, which can then by upgraded to 5.6 as described above.
$ sudo apt-get install -t lucid-backports drush
Comments
Post a Comment