To uninstall Horizon Agent from a Linux virtual machine, you must uninstall the Horizon Agent service and software and remove certain configuration files.

Prerequisites

Verify that the VMwareBlastServer process is not running. To stop this process, use one of the following methods:
  • Ensure that the user logs out from the machine and no desktop session is active.
  • Restart the virtual machine.

Procedure

  1. Open a terminal window on the virtual machine and run the appropriate uninstallation command for yourHorizon Agent installer type.
    Horizon Agent Installer Type Horizon Agent Uninstallation Command
    RPM (.rpm)
    sudo rpm -e VMware-horizonagent-linux-YYMM-y.y.y-xxxxxxx.el8.x86_64.rpm
    Tarball ( .tar.gz)
    sudo /usr/lib/vmware/viewagent/bin/uninstall_viewagent.sh

    The command stops the Horizon Agent processes and deletes the Horizon Agent service and software from the /usr/lib/vmware/viewagent directory.

  2. Manually delete the Horizon Agent configuration files from the /etc/vmware directory. For example:
    sudo rm -rf /etc/vmware