Kwupdate
The kwupdate command for Linux lists installed components and installs/uninstalls patches.
If you did not install a particular component with the installation package, it's not possible to install that component later with kwupdate. In order to install another component of the Klocwork tools, you must re-run the appropriate Server installation package.
List installed patches
kwupdate [<options>] --list-updates
List installed components
kwupdate [<options>] --list
Install a previously uninstalled patch
You normally install a patch by running a self-extracting patch installer script, for example, RP9.5.0.XXXX-linux-9.5.0.YYYY.sh. You would only run the following command to install a previously uninstalled patch.
kwupdate [<options>] --install --sequence <patch_number> ALL
where
- <options> are any of the options from the table below
- <patch_number> is the number of the patch you want to reinstall
- ALL means apply the patch to all installed components
Example
kwupdate --install --sequence 11269 ALL
Uninstall a patch
kwupdate [<options>] --uninstall --sequence <patch_number> ALL
where
- <options> are any of the options from the table below
- <patch_number> is the number of the patch you want to uninstall
- ALL means uninstall the patch from all installed components
Example
kwupdate --uninstall --sequence 11269 ALL
Options
Name | Short name | Description |
---|---|---|
--config <file> | -C | use this configuration file (default is KW-HOME/etc/kwupdate.conf) |
--define <name>=<value> | -D | define a variable with the specified value. Some packages use variables to keep track of important information. For example, the IntelliJ IDEA plugin requires the "idea.home" variable to be set to the IntelliJ IDEA home directory. |
--help | -h | print this help and exit |
--idea-dir <dir> | IntelliJ IDEA home directory. Equivalent to --define idea.home=<dir> | |
--install | -i | install previously uninstalled patches. Use --sequence to specify patch numbers. |
--list | -l | list installed components |
--list-updates | list installed updates | |
--no-saved-variables | -N | do not use or update remembered variable values. Normally, when a variable is set, its value is saved in the kwupdate database, so that you do not have to re-type the same variables. This option instructs kwupdate to ignore saved variable values and not to update the kwupdate internal database with new variable values. |
--quiet | -q | print as little as possible (only errors and warnings) |
--sequence <num> | -n | specify update sequence number (use with --install, --uninstall). Separate multiple patch numbers with spaces. |
--uninstall | -u | remove installed patch(es). Use --sequence to specify patch numbers. |
--version | -v | print version and exit |