Drupal upgrade the easy way

2020-07-06: Updated patch files to Drupal 7.72

Please note: Email notification may be disabled in the future because I plan to replace this site by static pages.

The standard procedure to upgrade Drupal to the latest release is to download it from drupal.org and follow the included UPGRADE.txt.

For administrators using the UNIX shell it may be easier using the attached patch files below instead of downloading and installing the newest complete Drupal release.

To patch your Drupal installation follow UPGRADING.txt up to and including

  • for Drupal 6: 5. Disable all custom and contributed modules.
  • for Drupal 7: 2. Go to Administration > Configuration > Development > Maintenance mode…

Now go on using this commands:

  • cd DRUPAL-ROOT
  • Dry run for testing without modifying anything: gunzip -c PATCHFILE | patch -p1 --dry-run
  • Do the real patching: gunzip -c PATCHFILE | patch -p1

Your Drupal installation is now upgraded. proceed with UPGRADING.txt from

  • for Drupal 6: 9. Verify the new configuration file to make sure it has correct information.
  • for Drupal 7: 5. Re-apply any modifications to files such as .htaccess or robots.txt.

Note: Most important step after upgrading is to run update.php as described in UPGRADING.txt above.

Warning

If you get errors like `Reversed (or previously applied) patch detected` or `1 out of 2 hunks FAILED` while running the patch dry run (second command above) immediately interrupt patching and upgrade following the steps explained in UPGRADING.txt.

Use this patch files on your own responsibility. I don't guarantee the proper function of the patch files on Drupal installations other than my own.

Note: If the patch process gets interrupted and leaves a mix of patched and unpatched files you may re-run it by ignoring already patched files after eliminating the reason of the interruption:

  • gunzip -c PATCHFILE | patch -p1 -N

You may savely remove reject files created during that process:

  • find . -name "*.rej" | xargs rm

Note: Sometimes .htaccess and sites/default/default.settings.php got changes. Make sure you have a backup of your .htaccess before applying a patch. If you modified your .htaccess before the patch may not apply. In this case rename your .htaccess to .htaccess-mine and apply the patch. It will ask you which file to patch, just press ENTER. Now it asks if you want to skip this patch. Enter “y” and press ENTER. Rename .htaccess-mine back to .htaccess and apply the changes to .htaccess as described in the Release notes). Also have a look there what did change in the settings.php.

Patch files

Drupal 8

I recommend upgrading using Composer or Drush.

Drupal 7

Note: Files are gzipped. Gunzip it before use.

To verify the integrity of the patch files use this MD5 hashes:

MD5 (drupal-7.0-to-7.72.patch.gz) = d2ae95755bb7659d16b9f2bc28a207d3
MD5 (drupal-7.1-to-7.72.patch.gz) = d1776dae0219b0b1486a07db4cef9f3e
MD5 (drupal-7.2-to-7.72.patch.gz) = 2e1ebab6858dca5a45b0a542c487b7b4
MD5 (drupal-7.3-to-7.72.patch.gz) = 8d5d9bc5a2c430ffe244d59179268e6c
MD5 (drupal-7.4-to-7.72.patch.gz) = fce79fb357e9070e45f725287b98818c
MD5 (drupal-7.5-to-7.72.patch.gz) = 053511a96143b77341217d108e8ca534
MD5 (drupal-7.6-to-7.72.patch.gz) = f20a8db3057346ed4591eef156a755f8
MD5 (drupal-7.7-to-7.72.patch.gz) = e2572dc592298edae9d34e9e00435b7a
MD5 (drupal-7.8-to-7.72.patch.gz) = b3bb193142db64854bf86f4ca5131915
MD5 (drupal-7.9-to-7.72.patch.gz) = 7605eb4477836246b08cd094f099f72c
MD5 (drupal-7.10-to-7.72.patch.gz) = c580ff37d8faefb0c1be90285145e71c
MD5 (drupal-7.11-to-7.72.patch.gz) = 3ca4c0b99c03a47be4097a74f301dec3
MD5 (drupal-7.12-to-7.72.patch.gz) = aafb370edf09c7c126c6c2d47e3dbdaf
MD5 (drupal-7.13-to-7.72.patch.gz) = 547a371aed01a57839f3b65e7ef9015f
MD5 (drupal-7.14-to-7.72.patch.gz) = eff4eaec3d653a24046334e6deaf0b8d
MD5 (drupal-7.15-to-7.72.patch.gz) = 77b49a66c7aa20e449a112444329cc37
MD5 (drupal-7.16-to-7.72.patch.gz) = 7607c6b723b28811abf5250c2f6cf1f3
MD5 (drupal-7.17-to-7.72.patch.gz) = 9c4fee368223f186e19ea8f18a36dc9c
MD5 (drupal-7.18-to-7.72.patch.gz) = cd08e131815f5c44ed1761694fef6ff1
MD5 (drupal-7.19-to-7.72.patch.gz) = 703a9beb7b9450210914fdd9ce3bb9ff
MD5 (drupal-7.20-to-7.72.patch.gz) = 70bd36caffaf7a3a88a7e365aca0101b
MD5 (drupal-7.21-to-7.72.patch.gz) = 631b41d2edb755d3e328102157984267
MD5 (drupal-7.22-to-7.72.patch.gz) = 71c731f2b21bc189c8eccee82f4d11e9
MD5 (drupal-7.23-to-7.72.patch.gz) = cfcd78af4031678444066c43a210d61e
MD5 (drupal-7.24-to-7.72.patch.gz) = 6783664a1379a5b225d27a04c4e42f01
MD5 (drupal-7.25-to-7.72.patch.gz) = 44b15d681e5f5ef3a13e6a75f15b6244
MD5 (drupal-7.26-to-7.72.patch.gz) = 596af8d6e44ee273009abeb885804fd3
MD5 (drupal-7.27-to-7.72.patch.gz) = 89008f162e11b1758d7cdde5d097e143
MD5 (drupal-7.28-to-7.72.patch.gz) = 86209f944dcb8528f608abe5dc785535
MD5 (drupal-7.29-to-7.72.patch.gz) = cf5a48a16518f80520cad1922ff48134
MD5 (drupal-7.30-to-7.72.patch.gz) = 120fd611f192ff91af32f0bc07d4aac9
MD5 (drupal-7.31-to-7.72.patch.gz) = 864fb47abce058cd4042cb090fb29fcc
MD5 (drupal-7.32-to-7.72.patch.gz) = 7d89c30176ce9c4e83d621825fab1e4e
MD5 (drupal-7.33-to-7.72.patch.gz) = 9afb3d4daac261ff398b9b90c3183e11
MD5 (drupal-7.34-to-7.72.patch.gz) = 71feb61b4abd1806f4810ac96a3c2eb9
MD5 (drupal-7.35-to-7.72.patch.gz) = 3f2289edf05fb269e9606980e33dabbe
MD5 (drupal-7.36-to-7.72.patch.gz) = 6e332433bb27112db9298ea52fa19407
MD5 (drupal-7.37-to-7.72.patch.gz) = 5b6899be4e47b8861318e82af8a302a0
MD5 (drupal-7.38-to-7.72.patch.gz) = 7c220f7432c3b42aa2bdf15940a70917
MD5 (drupal-7.39-to-7.72.patch.gz) = 42f66e4b96a373567e549a89328faa85
MD5 (drupal-7.40-to-7.72.patch.gz) = a1b712fbcc7720f4bdf158417202532d
MD5 (drupal-7.41-to-7.72.patch.gz) = 6e55aef33143d789fed9d451fe216755
MD5 (drupal-7.42-to-7.72.patch.gz) = 525c2a15144a8972955cebac7b104339
MD5 (drupal-7.43-to-7.72.patch.gz) = caf691c5ac88dc840860bc5debaf17b1
MD5 (drupal-7.44-to-7.72.patch.gz) = 2d8dec28aaf12dd59f65791c9b004c63
MD5 (drupal-7.50-to-7.72.patch.gz) = 7fcb36eab1f34f76faa6da174bfe2f4f
MD5 (drupal-7.51-to-7.72.patch.gz) = d4f77d802af9863e97c88b38912d79ac
MD5 (drupal-7.52-to-7.72.patch.gz) = f7a0e0f074865e8f0f92c0683ca4d735
MD5 (drupal-7.53-to-7.72.patch.gz) = 1cbeabd798a62323c1d5dfff957c75ba
MD5 (drupal-7.54-to-7.72.patch.gz) = 3efad63bb2ddb8d3d714543265b8edc2
MD5 (drupal-7.55-to-7.72.patch.gz) = 0654a54aafe15283dec218c89ac8f001
MD5 (drupal-7.56-to-7.72.patch.gz) = 1d8713687036abe909ea42652fae2ee5
MD5 (drupal-7.57-to-7.72.patch.gz) = 1dd818dde3fd6ce9979ccf4fb56cea51
MD5 (drupal-7.58-to-7.72.patch.gz) = 9c710beb261a0912bd2dd71dbbc01a0e
MD5 (drupal-7.59-to-7.72.patch.gz) = 73689298f25d8e0ccb0e0f61f576f94d
MD5 (drupal-7.60-to-7.72.patch.gz) = fdd3de9f62e478fd1ae8f529b86660fb
MD5 (drupal-7.61-to-7.72.patch.gz) = b3e947b59b2862d80cc1915a4110f8e7
MD5 (drupal-7.62-to-7.72.patch.gz) = d800e961a4e114b41b2a5c5c672a2abb
MD5 (drupal-7.63-to-7.72.patch.gz) = 959f2185b2dc34c8ea6ea9ad798e7c9f
MD5 (drupal-7.64-to-7.72.patch.gz) = d3f15f152edc749a2e77136e2845abe9
MD5 (drupal-7.65-to-7.72.patch.gz) = 56907da78411b0eec25cd9ce572ad9da
MD5 (drupal-7.66-to-7.72.patch.gz) = 54b0dc9e2435dda6347a43d4bd8cc386
MD5 (drupal-7.67-to-7.72.patch.gz) = 0a9ec540aa99da6c43949bc06d892e2e
MD5 (drupal-7.68-to-7.72.patch.gz) = 474d3bf482064a64d667e0e0482119e8
MD5 (drupal-7.69-to-7.72.patch.gz) = c5a449e7cbf49828be9e734f16c89f28
MD5 (drupal-7.70-to-7.72.patch.gz) = 0680c959c5566f99aa5f429f9c1ff8b4
MD5 (drupal-7.71-to-7.72.patch.gz) = f00f5796c0570ae6aa393cfd447b255e

Drupal 6

Note: Files are gzipped. Gunzip it before use.

To verify the integrity of the patch files use this MD5 hashes:

MD5 (drupal-6.0-to-6.38.patch) = 0d96eda6cfb02064b7c0f26f2d96db04
MD5 (drupal-6.1-to-6.38.patch) = dfa23ea8ec25666bedce705142d932f7
MD5 (drupal-6.2-to-6.38.patch) = 7e59144aa4b09a015a67679aab794dd6
MD5 (drupal-6.3-to-6.38.patch) = 5582de3f81efefc89951b9d28d5085c3
MD5 (drupal-6.4-to-6.38.patch) = f9ae77bbadf33f51fce316042d7195f5
MD5 (drupal-6.5-to-6.38.patch) = cb6370f9270eeea17bd8921585c4567f
MD5 (drupal-6.6-to-6.38.patch) = dc39e261e62a4788cdbd0088ccdbc1ae
MD5 (drupal-6.7-to-6.38.patch) = fab8b9dcd5765c553bea222b025c71ec
MD5 (drupal-6.8-to-6.38.patch) = cecaef557a5f4b7c66b637ad61c510e6
MD5 (drupal-6.9-to-6.38.patch) = 380f64ba07b2aa98466a703aa859cff1
MD5 (drupal-6.10-to-6.38.patch) = 6ddd550af5102ffab1c5770ce3c6b2af
MD5 (drupal-6.11-to-6.38.patch) = 1f5003ef05dc5af42773d1d8c51c72eb
MD5 (drupal-6.12-to-6.38.patch) = 41afac12d544a929eb0c3631e3df43c9
MD5 (drupal-6.13-to-6.38.patch) = 4f5a18b7f00674409f9dfd7b748a1f9d
MD5 (drupal-6.14-to-6.38.patch) = f86b7746b792e368953688a4fb6d25d5
MD5 (drupal-6.15-to-6.38.patch) = d8901736b33c9b02d6e49f93388ef1c7
MD5 (drupal-6.16-to-6.38.patch) = f06dd17e4d7400e5eba2383ecc6abd6c
MD5 (drupal-6.17-to-6.38.patch) = a251d5cc62922e81288f351fb6f0a9fc
MD5 (drupal-6.18-to-6.38.patch) = 00889048e2a3749cd6aa83f9685d754e
MD5 (drupal-6.19-to-6.38.patch) = 86993497e5d7ec660e7c7240abb56ed0
MD5 (drupal-6.20-to-6.38.patch) = 8d9bcd3ec3fa3bfbd89be088ac7b94c3
MD5 (drupal-6.21-to-6.38.patch) = ddc1fdb03627c6696f37906eefb24015
MD5 (drupal-6.22-to-6.38.patch) = 1f030d8d09fe46c1c2db1015c07e0ccf
MD5 (drupal-6.23-to-6.38.patch) = efb5da9154eb837741a0570cda17d12a
MD5 (drupal-6.24-to-6.38.patch) = b34e67825b96e33be0c5332282693a6f
MD5 (drupal-6.25-to-6.38.patch) = 2409998fc5e01ef6360d3733c445a1c2
MD5 (drupal-6.26-to-6.38.patch) = 7dffd85efe4aa90adb7456a17ce67e61
MD5 (drupal-6.27-to-6.38.patch) = 49fb0914992a0b6b65e5fd6cc524401e
MD5 (drupal-6.28-to-6.38.patch) = 4268112f0026f4afa09c46897afcb6f1
MD5 (drupal-6.29-to-6.38.patch) = 41ca230f7adce19d7c39d9ea6d3e542d
MD5 (drupal-6.30-to-6.38.patch) = ca9fe9d15f9e3478d699bc0c3314db54
MD5 (drupal-6.31-to-6.38.patch) = 59208e43f9bc8f717882d9fec6521914
MD5 (drupal-6.32-to-6.38.patch) = 95a6b9d4e6be5b04a941e5ebdddd8357
MD5 (drupal-6.33-to-6.38.patch) = 3ed549798aac6fe41e82b1567feeb6c8
MD5 (drupal-6.34-to-6.38.patch) = a03faa3ab186df76914727cacfb670c1
MD5 (drupal-6.35-to-6.38.patch) = b5d342cf0a2cb7948c2dbed9705e10e1
MD5 (drupal-6.36-to-6.38.patch) = 06e5a118fc8807cf2be285836a553173
MD5 (drupal-6.37-to-6.38.patch) = 2ee9c1bacd7117fadf172ef6df45fd41

SA-CORE-2018-002 / SA-CORE-2018-004 for Drupal 6

Use this files to patch Drupal 6.38, one after the other. These are the Backport commits from the Drupal 6 Long-Term Support project:

  1. drupal6_SA-CORE-2018-002.patch, see Backport of fixes from SA-CORE-2018-002
  2. drupal6_SA-CORE-2018-004.patch, see Backport of fixes from SA-CORE-2018-004

To verify the integrity of the patch file use this MD5 hash:

MD5 (drupal6_SA-CORE-2018-002.patch) = 938bae84ec554b6d2fe4bb56912111b0
MD5 (drupal6_SA-CORE-2018-004.patch) = 7dc9f039bf415fc6e4e7fcbce1ab1ca3

Drupal 5

Note: Files are gzipped. Gunzip it before use.

To verify the integrity of the patch files use this MD5 hashes:

MD5 (drupal-5.0-to-5.23.patch) = 13235f0c50caf2f0366403563053fbba
MD5 (drupal-5.1-to-5.23.patch) = e2d5fc4ec6da1f1db2f83204eef03160
MD5 (drupal-5.2-to-5.23.patch) = 13da34e36fb58f422c86c1574e26719b
MD5 (drupal-5.3-to-5.23.patch) = dd826e692ab5e9e50ce55feac0b82673
MD5 (drupal-5.4-to-5.23.patch) = e44a1f00549c5d39bbe359772db4ec9d
MD5 (drupal-5.5-to-5.23.patch) = 4f06344f52f3c476e458f01c4925e987
MD5 (drupal-5.6-to-5.23.patch) = bd31200144a9b716e4a1cad1930796f1
MD5 (drupal-5.7-to-5.23.patch) = 598e037a8840d79509ea5c247dff975e
MD5 (drupal-5.8-to-5.23.patch) = 2a53dedeb3b00c679ccb0dae44379789
MD5 (drupal-5.9-to-5.23.patch) = 8dd63096cf7c5dd73e968f770f56301b
MD5 (drupal-5.10-to-5.23.patch) = a6127a53d945659efde17a31e8037b79
MD5 (drupal-5.11-to-5.23.patch) = 841eabce62cac99f98e77de733aeb7c6
MD5 (drupal-5.12-to-5.23.patch) = ddb82f96ad7915e34111df4706237c11
MD5 (drupal-5.13-to-5.23.patch) = 41bf265e25a1d6c9324e4f6c7b5ff067
MD5 (drupal-5.14-to-5.23.patch) = 7c48dca7dd10533fe65c895d33c7be56
MD5 (drupal-5.15-to-5.23.patch) = ae1a31e80c3b24dfa1710adecbd1cce9
MD5 (drupal-5.16-to-5.23.patch) = 72e25e1c680b75cbc1f8b303c4d97cba
MD5 (drupal-5.17-to-5.23.patch) = 0fee19e0808ec863284618ce8f506d6c
MD5 (drupal-5.18-to-5.23.patch) = 997f35d8372277203e5129e9bc684f81
MD5 (drupal-5.19-to-5.23.patch) = 6189d7c3c3139647dfd519b727d8f12f
MD5 (drupal-5.20-to-5.23.patch) = 33d48157e036411fd336a5d9023c8644
MD5 (drupal-5.21-to-5.23.patch) = 86cb8be7e01f576177765d670332e4fb
MD5 (drupal-5.22-to-5.23.patch) = 94488c667c2c68d48438d81129e3edca

SA-CORE-2018-002 / SA-CORE-2018-004 for Drupal 5

  1. SA-CORE-2018-002 for Drupal 5
  2. SA-CORE-2018-004 for Drupal 5