- Open a terminal window and type:
cd /usr/local/drush - Download the latest version:
php -r "readfile('http://files.drush.org/drush.phar');" > drush - Make the new version executable:
sudo chmod +x /usr/local/bin/drush
drush init
drush sset system.maintenance_mode 1
drush cr
drush up drupal
drush up --security-only
drush up
drush updb
drush entup
drush sset system.maintenance_mode 0
drush cr