Updating Drupal 7 can be a challenging task. As a developer, using a version control system, like Git, helps me keep my sanity and also leverage it by creating and applying the patches rather than manually removing/adding files. This greatly helps especially if you're managing multiple Drupal 7 sites.
Drupal 7 patch files
Download one of the patch files below to update your Drupal 7 core from one version to the next.
- drupal-7.70-7.71.patch.gz
- drupal-7.71-7.72.patch.gz
- drupal-7.72-7.73.patch.gz
- drupal-7.73-7.74.patch.gz
- drupal-7.74-7.75.patch.gz
- drupal-7.75-7.76.patch.gz
- drupal-7.76-7.77.patch.gz
- drupal-7.77-7.78.patch.gz
- drupal-7.78-7.79.patch.gz
- drupal-7.79-7.80.patch.gz
- drupal-7.80-7.81.patch.gz
- drupal-7.81-7.82.patch.gz
- drupal-7.82-7.83.patch.gz
- drupal-7.83-7.84.patch.gz
- drupal-7.84-7.85.patch.gz
- drupal-7.85-7.86.patch.gz
- drupal-7.86-7.87.patch.gz
- drupal-7.87-7.88.patch.gz
- drupal-7.88-7.89.patch.gz
- drupal-7.89-7.90.patch.gz
- drupal-7.90-7.91.patch.gz
- drupal-7.91-7.92.patch.gz
- drupal-7.92-7.93.patch.gz
- drupal-7.93-7.94.patch.gz
- drupal-7.94-7.95.patch.gz
Alternatively, you can download the patch file below to upgrade your Drupal 7 core from the last security update to the latest.
- drupal-7.78-7.80.patch.gz
- drupal-7.80-7.82.patch.gz
- drupal-7.82-7.86.patch.gz
- drupal-7.86-7.88.patch.gz
- drupal-7.88-7.95.patch.gz
Note: Files are gzipped, gunzip the file before use.
gunzip drupal-[version]-[version].patch.gz
Applying the patch using Git
- Check your current Drupal 7 version, download and unzip the appropriate patch file above.
- Using terminal, change to your Drupal 7 root directory
cd ~/drupal-root
- Create a new branch for the update
git checkout -b update/core-7.xx
- Check the patch to see if it applies without problems against your Drupal 7 installation
git apply --check ~/path-to/drupal-[version]-[version].patch
- If there are changes to the default.settings.php file, change the directory permissions
chmod 755 sites/default
- If you don't see any errors, go ahead and apply the patch
git am --signoff < ~/path-to/drupal-[version]-[version].patch
- Once the update is complete, merge the update branch back into your master branch and push to the repository
git checkout master git merge update/core-7.xx git push
Add new comment