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 off 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 Horizon Agent uninstallation command for your Linux distribution.
    Operating System Horizon Agent Uninstallation Command
    RHEL 8.x
    sudo rpm -e VMware-horizonagent-linux-YYMM-y.y.y-xxxxxxx.el8.x86_64.rpm
    All other Linux distributions
    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:
    rm -rf /etc/vmware