Install Drush 8.x on Ubuntu 16.04

php -r "copy('https://getcomposer.org/installer', 'composer-setup.php');"

php -r "if (hash_file('SHA384', 'composer-setup.php') === '544e09ee996cdf60ece3804abc52599c22b1f40f4323403c44d44fdfdd586475ca9813a858088ffbc1f233e9b180f061') { echo 'Installer verified'; } else { echo 'Installer corrupt'; unlink('composer-setup.php'); } echo PHP_EOL;"

php composer-setup.php

php -r "unlink('composer-setup.php');"

 mv composer.phar /usr/local/bin/composer

composer

vim ~/.bashrc

Add this => export PATH="$HOME/.composer/vendor/bin:$PATH"
and ~/.bashrc

source  ~/.bashrc

composer global require drush/drush:8.x

drush --version

drush 7 version install
================
composer global require drush/drush:7.1.0 
export PATH="/root/.composer/vendor/bin:$PATH"






Comments

Popular posts from this blog

Programatically create layout builder section in Drupal

Code quality analysis of Drupal. Can I use Sonar?

Set up Drupal7 to Drupal8 migration in simple steps (using Drush)