Citrix

Cpatch.exe - The Citrix Patch Handling Utility

  • CTX105646
  • Created onMar 26, 2014
  • Updated onMay 23, 2014
Article Topic Installation/Upgrade

Information

The Citrix patch handling utility (cpatch.exe) is useful for installation and removal of Citrix patches, such as service packs and hotfixes. The utility is also useful for obtaining information regarding installed patches. The Citrix patch handling utility is automatically installed by default during the XenApp installation.

Usage

To display the Citrix patch handling utility usage, open a command (cmd.exe) window and execute cpatch command with no command-line options:

>cpatch Citrix Patch handling utility
Options...
/l [ProductCode] List the Citrix Patches installed for [ProductCode].
If no ProductCode is specified patches for all the Citrix products are enumerated.
/u [PatchCode]/[PatchFile]/[HotfixName]
Remove a Citrix patch from all the applicable products.
/p [PatchPackage] Apply [PatchPackage] to all applicable products
/a [PatchPackage] [ProductLocation]
Apply [PatchPackage] to the administrative install
for Product located at [ProductLocation].
/r Lists the Citrix products installed on this server.
/i [PatchCode]/[PatchFile]/[HotfixName]
Displays information about a Citrix patch.

Information Regarding Installed Patches

In order to obtain information regarding the installed patches, refer to the following:

/r option

The /r option is used to list the Citrix products installed on the server:

>cpatch /r ******************Product Information****************** ProductName = Citrix XenApp 6.5 ProductCode = {1471A89F-8CAB-4C46-89AB-942432D1DD3D} ProductLanguage = 1033 ProductVersion = 6.5.0.0

/l option

The /l option is used to list which Citrix patches are installed for specific products, as well as obtain information regarding the patch, such as the PatchName, PatchCode, InstalledBy, InstalledDate/Time, and specific file size or version of files updated with the patch.

  • To list all Citrix patches applied to all Citrix products, use /l without specifying a product code as follows:

    >cpatch /l
  • To list all Citrix patches applied to a specific product, specify the product code with the /l option. Following is a sample output for this option:

    >cpatch /l {1471A89F-8CAB-4C46-89AB-942432D1DD3D} ******************Hotfix Information****************** HotfixName = XA650W2K8R2X64R01 HotfixLocalPackage = C:\Windows\Installer\2598b760.msp PatchCode = {343BE097-0B21-F62C-9D0A-886C9D142DBF} ProductName = Citrix XenApp 6.5 ProductVersion= 6.5.0.0 ProductCode= {1471A89F-8CAB-4C46-89AB-942432D1DD3D} ProductLanguage= 1033 InstalledBy = CASOD\ctxadmin InstallDate = 20120712 InstalledOn = 1342105262Install Date = Jul 12, 2012 Install Time = 16:01:02 HotfixSequence = 6.5.6500.1 MoreInfoURL = http://support.citrix.com/article/CTX132122 CreationTimeUTC = 5/30/2012 5:08:30 PM Classification = HRP PatchState = 1 ReplacesCount = 31 Replaces[0] = XA650W2K8R2X64001 Replaces[1] = XA650W2K8R2X64002 Replaces[2] = XA650W2K8R2X64003Replaces[3] = XA650W2K8R2X64004 Replaces[4] = XA650W2K8R2X64005
    …

    Because the output might be lengthy for large and/or numerous patches, piping the output into more command may be used to pause after one screen full of information is displayed:

    >cpatch /l | more
    

    Or the output may be redirected to text file:

    >cpatch /l > C:\cpatch.txt
    

    In certain instances, you may only desire to see information for one particular patch, rather than all patches, or all patches applied to a particular product. In this instance the /i switch is useful. The /i switch may be used with the patch file name, patch code, or patch name to display information about one patch only.

    >cpatch /i {343BE097-0B21-F62C-9D0A-886C9D142DBF} >cpatch /i XA650W2K8R2X64R01 >cpatch /i
    C:\Windows\Installer\2598b760.msp [HotfixlocalPackage value]

Installing Patches

To install a patch, use the /p option and the patch is installed to the specific product.

>cpatch /p XA650W2K8R2X64R01.msp

Follow the patch installation wizard to complete the installation.

Removing Patches

To remove a patch, use the /u option and the patch is removed from the specific product. You may either specify the PatchCode or PatchName (from the cpatch /l output), or the patch file name.

>cpatch /u {343BE097-0B21-F62C-9D0A-886C9D142DBF} >cpatch /u XA650W2K8R2X64R01 >cpatch /u
C:\Windows\Installer\2598b760.msp [HotfixlocalPackage value]

Follow the patch un-installation wizard to complete the removal.

Automatic translation

Important: This article was translated by an automatic translation system (also referred to as Machine Translation, or MT) and has not been translated or reviewed by people. Citrix offers a machine translated version of this article to allow for greater access to the support content. However, automatic translation is not always perfect and may contain errors of vocabulary, syntax or grammar. Citrix is not responsible for inconsistencies, errors or damage incurred as a result of the use of MT articles from our customers.Thank you.
Click here to see the English version of this article.
Languages
Was this helpful?
Thank you for your feedback

Share your comments or find out more about this topic

Citrix Forums