Download Different Versions of Drupal with Drush

Posted: 31st December 2013

Tags: drupal, drupal-planet, drush

I still maintain a number of Drupal 6 sites and occassionally need to download Drupal 6 core as opposed to Drupal 7. I'm also experimenting with Drupal 8 so I need to download that as well.

By declarding the core version of Drupal, such as "drupal-6", Drush will download that instead.

$ drush dl drupal-6

This downloads the most recent stable version of Drupal 6. If you don't want that, you can add the --select and additionally the --all options to be presented with an entire list to chose from.

$ drush dl drupal-6 --select
$ drush dl drupal-6 --select --all

If you want the most recent development version, just type:

$ drush dl drupal-6.x

The same can be done for other core versions of Drupal, from Drupal 5 upwards.

# This will download Drupal 5
$ drush dl drupal-5
# This will download Drupal 8
$ drush dl drupal-8

For a full list of the available options, type "drush help pm-download" into a Terminal window or take a look at the entry on drush.ws.

About the Author

Picture of Oliver

Oliver Davies is a Web Developer, System Administrator and Drupal specialist based in the UK. He is a Senior Drupal Developer at Microserve and also provides freelance consultancy services for Drupal websites, PHP applications and Linux servers.

Availability

Currently have limited part-time capacity

Currently no spare full-time capacity.