This topic describes how to uninstall the ClamAV Add-on for PCF from your deployment, and how to verify the uninstallation.
To uninstall the ClamAV Add-on, follow the steps below:
Retrieve the latest runtime config by running the following command:
bosh -e my-env runtime-config > PATH-TO-SAVE-THE-RUNTIME-CONFIG
Where PATH-TO-SAVE-THE-RUNTIME-CONFIG
is the location that you want to save the runtime configuration.
For example:
$ bosh -e my-env runtime-config > /runtime/config/
In the runtime config, remove all ClamAV properties under the releases:
and addons:
sections.
Update the runtime config.
bosh -e my-env update-runtime-config --name=clamav PATH-TO-SAVE-THE-RUNTIME-CONFIG
Where PATH-TO-SAVE-THE-RUNTIME-CONFIG
is the location of the runtime configuration you are updating.
For example:
$ bosh -e my-env update-runtime-config –name=clamav /runtime/config/
Navigate to your Installation Dashboard in Ops Manager.
If you are using Ops Manager v2.3 or later, click Review Pending Changes. For more information about this Ops Manager page, see Reviewing Pending Product Changes.
Click Apply Changes.
Wait for the installation to complete.
To verify the uninstallation of the ClamAV Add-on is successful, follow the steps below:
Use bosh ssh
to SSH into one of the VMs in your deployment. For more information, see BOSH SSH
Run monit summary
. If ClamAV has uninstalled successfully, it does not show the clamd
or freshclam
processes.