patch Commands
Use commands with the patch
keyword to apply or rollback
one-off patches to the specified working copy using the in-place patching
method.
- rhpctl apply patch
Applies one-off patches to the specified working copy using in-place patching method. - rhpctl rollback patch
Rolls back the specified patch in the specified working copy.
Parent topic: RHPCTL Command Reference
rhpctl apply patch
Applies one-off patches to the specified working copy using in-place patching method.
Syntax
rhpctl apply patch -workingcopy workingcopy_name
[-image image_name | -patchloc patch_location_on_target] [-online [-dbname unique_db_name]]
[-eval] [-targetnode target_node_name {-root | -cred cred_name | -sudouser sudo_username
-sudopath path_to_sudo_binary | -auth plugin_name [-arg1 name1:value1
[-arg2 name2:value2 ...]]}] [-schedule timer_value] [-jobtag tag_name]
Parameters
Table A-53 rhpctl apply patch Command Parameters
Parameter | Description |
---|---|
-workingcopy workingcopy_name |
Specify a name for the working copy that you want to patch. |
-image image_name |
Specify the name of a configured image that you want to patch. |
-patchloc patch_location_on_target |
Specify the absolute path for the unzipped patch directory on the target. |
-online |
Specify this parameter to indicate that the patch type is online. |
-dbname unique_db_name |
Specify the unique name of the database ( |
–eval |
Optionally, you can use this parameter to evaluate the impact of this command on the system without actually running the command. |
-targetnode target_node_name |
Specify the name of an |
-root | -cred cred_name | -sudouser sudo_user_name -sudopath sudo_binary_location | -auth plugin_name plugin_args |
If you choose to use the Choose |
-schedule timer_value |
Optionally, you can use this parameter to schedule a time to run
this operation, in ISO-8601 format, as in the following
example:
If If |
-jobtag tag_name |
Optionally, you can associate a user-defined tag with the scheduled jobs. |
Examples
To patch a working copy on a client cluster:
rhpctl apply patch -workingcopy workingcopy_name -image image_name -online
Parent topic: patch Commands
rhpctl rollback patch
Rolls back the specified patch in the specified working copy.
Syntax
rhpctl rollback patch -patchid patch_ids -workingcopy workingcopy_name
[-online [-dbname unique_db_name]] [-targetnode target_node_name {-root | -cred cred_name
| -sudouser sudo_username -sudopath path_to_sudo_binary | -auth plugin_name
[-arg1 name1:value1 [-arg2 name2:value2 ...]]}]
[-schedule timer_value] [-jobtag tag_name]
Parameters
Table A-54 rhpctl rollback patch Command Parameters
Parameter | Description |
---|---|
-patchid patch_id |
Specify a comma-separated list of patch IDs that you want to roll back. |
-workingcopy workingcopy_name |
Specify a name for the working copy from which you want to rollback the patch. |
-online |
Specify this parameter to indicate that the patch type is online. |
-dbname unique_db_name |
Specify the unique name of the database
( |
-targetnode target_node_name |
Specify the name of an |
-root | -cred cred_name |
-sudouser sudo_user_name -sudopath sudo_binary_location | -auth plugin_name
plugin_args |
If you choose to use the Choose |
-schedule timer_value |
Optionally, you can use this parameter to schedule a time to run
this operation, in ISO-8601 format, as in the following
example:
If If |
-jobtag tag_name |
Optionally, you can associate a user-defined tag with the scheduled jobs. |
Examples
To rollback a patch from a working copy on a client cluster:
rhpctl rollback patch -patchid patch_id -workingcopy workingcopy_name -online
Parent topic: patch Commands