Liferay Patching Tool
Liferay provides patching-tool utility to update latest fix packs provided by the liferay. Liferay Enterprise already configured with Patching tool. If patching tool not found then download from liferay and configure.
In this, tutorial, we use Liferay DXP Patching tool to show the demp
High Level Steps:
- Configure Patching Tool in Liferay
- Install Liferay fix packs
Configure Patching Tool in Liferay
- Download patching-tool from liferay and extract to your liferay-home folder
- The patching-tool directory will look like below :
- default.properties : Change these settings if you configure Patching tool other than liferay directory
-
patching.mode=binary war.path=../tomcat-8.0.32/webapps/ROOT/ global.lib.path=../tomcat-8.0.32/lib/ext/ liferay.home=../
-
- paches : This is where you need to copy liferay fix packs. When you run install command then liferay will update all the fix packs on the tomcat server
- default.properties : Change these settings if you configure Patching tool other than liferay directory
- Open command prompt or unit shell and navigate to patching tool directory
- Run the command:
- patching-tool info : This would give you patching tool version, installed paches etc
- Run the auto-discovery command
- Run the setup command:
Install Liferay fix packs
- Liferay Patching tool is ready and download latest fix packs from liferay
- Copy fix packs to “patches” directory. I copied de-8-7010 fix pack from liferay.
- Stop the Liferay server
- Run the below command:
- patching-tool install : It will install all patches copied in patches directory
- Now run the command “patching-tool info” again and it will give the list of installed fixes
- Hope this helps!!
6 thoughts on “liferay patching tool”
Comments are closed.
Thanks for knowledge sharing article.Bro.BTW .. In the fifth step its mentioned as patching-tool auto-discovery.But in the Image you are given as patching-tool.bat auto-discovery.This is windows cmd option only right .Correct me if I am wrong ???
yes. Its windows command and you can find Linux also with same name and execute in the console like this: “./patching-tool.sh”
Do we need to remove the old patch before installing new patch or without removing old patch we can install.Please suggest.
Great resource as usual. Thousand Thanks!!!
Thanks for your article. It is useful . I have doubt on this .
I am new to liferay dxp. where can i download the patches for Liferay 7 .