How do I upgrade Drupal Core?

Posted November 20, 2014 4.5k views

How can I upgrade to the latest version of Drupal to 7.34 through SSH?

These answers are provided by our Community. If you find them useful, show some love by clicking the heart. If you run into issues leave a comment, or add your own answer to help others.

Submit an Answer
3 answers

The Drupal One-Click application comes with Drush, a command line tool for administering Drupal., pre-installed. It allows you to upgrade Drupal easily.

First change into the directory containing Drupal:

cd /var/www/html/drupal/

To check for an available update run:

drush pm-update -n

And to update to the new release, run:

drush pm-update drupal-7.34

For more info on what you can do with Drush, check out:

by danny.sipos
Drush is a very useful tool which helps you perform various admin tasks using just one or two commands in the terminal, replacing the many clicks and page refreshes needed in the UI. This tutorial will go through some of the basic Drush commands and will work with a standard Drupal installation to illustrate them.

Just to update. Some might get this error.

Command pm-update needs a higher bootstrap level to run - you will need to invoke drush from a more functional Drupal environment to run this command.                                              [error]
The drush command 'pm-update' could not be executed.                                                [error]
Drush was not able to start (bootstrap) the Drupal database.                                          [error]

Same here. Any solution?