Jump to content

Upgrade using patch: Difference between revisions

From www.ReeltoReel.nl Wiki
Pvdm (talk | contribs)
Created page with "=== Using patch === <!--T:63--> A small patch file is usually made available for a minor version upgrade. You'll need to download patch to use this Manually download and extract the patch file from [https://releases.wikimedia.org/mediawiki/ the dumps site] or follow the directions with wget below. Patches are incremental, you can '''not ''' skip a version. # <kbd>cd</kbd> to your main MediaWiki directory (the one with LocalSettings.php) # Download t..."
 
Pvdm (talk | contribs)
mNo edit summary
 
Line 8: Line 8:
# <kbd>cd</kbd> to your main MediaWiki directory (the one with LocalSettings.php)
# <kbd>cd</kbd> to your main MediaWiki directory (the one with LocalSettings.php)


# Download the patch file and <kbd>gunzip</kbd> it.
# Download the patch file and <kbd>unzip</kbd> it.


# Use <code>patch -p1 --dry-run</code> to check what will be changed (''e.g.'', <code>patch -p1 --dry-run -i ''mediawiki-x.xx.x.patch''</code>)
# Use <code>patch -p1 --dry-run</code> to check what will be changed (''e.g.'', <code>patch -p1 --dry-run -i ''mediawiki-x.xx.x.patch''</code>)

Latest revision as of 18:25, 27 June 2024

Using patch

A small patch file is usually made available for a minor version upgrade. You'll need to download patch to use this Manually download and extract the patch file from the dumps site or follow the directions with wget below. Patches are incremental, you can not skip a version.


  1. cd to your main MediaWiki directory (the one with LocalSettings.php)
  1. Download the patch file and unzip it.
  1. Use patch -p1 --dry-run to check what will be changed (e.g., patch -p1 --dry-run -i mediawiki-x.xx.x.patch)
  1. If all is well, run patch again without --dry-run
  1. Check your Special:Version and you should see the new version number in place.