Difference between revisions of "Patch Command"
From InfoTechPedia
TomHutchison (talk | contribs) (new page on patch) |
TomHutchison (talk | contribs) |
||
Line 1: | Line 1: | ||
− | + | This page shows how to use the patch command in CLI | |
Example using MediaWiki patch files to update minor versions of MediaWiki. | Example using MediaWiki patch files to update minor versions of MediaWiki. | ||
Line 11: | Line 11: | ||
:If all is well, run patch again without --dry-run. | :If all is well, run patch again without --dry-run. | ||
:Check your Special:Version and you should see the new version number in place. | :Check your Special:Version and you should see the new version number in place. | ||
+ | |||
+ | [[Category:Linux]][[Category:Command Line]] |
Revision as of 07:27, 16 October 2019
This page shows how to use the patch command in CLI
Example using MediaWiki patch files to update minor versions of MediaWiki.
A small patch file is usually made available for a minor version upgrade. 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.
- cd to your main MediaWiki directory (the one with LocalSettings.php)
- Download the patch file and gunzip it.
- Use patch
-p1 --dry-run
to check what will be changed (e.g.,patch -p1 --dry-run -i mediawiki-x.xx.x.patch
) - If all is well, run patch again without --dry-run.
- Check your Special:Version and you should see the new version number in place.