Drupal-7: Install Drush using Git (without Composer)

Drush support for Drupal 7 ended back with version 8 of Drush. Also, Composer has become the defacto way to install anything for Drupal, including Drush.

If you are one of those old-school people who hate to load or use a non-intuitive resource-hog like Composer on your system and you just want to type an install command and be done, then this is how to do it for Drush 8.

wget https://github.com/drush-ops/drush/releases/download/8.subver.release/drush.phar

where:

subver
Sub-version number, perhaps 4
release
Release number, perhaps 8

For example,

wget https://github.com/drush-ops/drush/releases/download/8.4.10/drush.phar -O drush-8.4.10.phar

In Linux, it might make sense to put Drush versions in a directory called /usr/local/etc/drush/ and then put a symlink to it called drush in /usr/local/sbin/

3 / 2021