To uninstall the VMware Horizon Agent on Linux, the process involves two primary steps: executing the appropriate uninstallation command for your installer type and then manually removing residual configuration files.
Understanding the Uninstallation Process
Properly removing the Horizon Agent ensures that all associated software components and configuration settings are completely cleared from your system. This two-phase approach guarantees a clean uninstallation, preventing potential conflicts or leftover data.
Step 1: Execute the Uninstallation Command
The first crucial step is to run the uninstallation command specific to how the Horizon Agent was originally installed on your Linux system. For most Linux distributions using RPM packages, the process is straightforward.
Find the correct package name for your Horizon Agent installation. You can often do this by listing installed RPM packages and filtering for "horizon" or "vmware":
rpm -qa | grep horizon
Once you have identified the precise package name (e.g., vmware-horizon-agent
), use the appropriate command from the table below.
Horizon Agent Installer Type | Uninstallation Command |
---|---|
RPM (.rpm) | sudo rpm -e <package_name> |
Example for RPM:
If your Horizon Agent package is named vmware-horizon-agent
, you would execute:
sudo rpm -e vmware-horizon-agent
This command will initiate the removal of the agent's core files and dependencies.
Step 2: Manually Remove Configuration Files
After running the uninstallation command, it's essential to manually delete any remaining Horizon Agent configuration files. These files are typically stored in a dedicated directory and are not always removed by the package manager.
To remove the Horizon Agent configuration files, use the following command:
sudo rm -rf /etc/vmware
Important Note: The rm -rf
command is powerful and permanently deletes files and directories without confirmation. Ensure you are executing this command precisely as intended and that the /etc/vmware
directory only contains files related to the Horizon Agent that you wish to remove. Deleting critical system files by mistake can lead to system instability.
Important Considerations
- Administrator Privileges: Ensure you have
sudo
privileges or are logged in as the root user to perform these uninstallation steps. - Disconnect Sessions: Before beginning the uninstallation, ensure that no active Horizon sessions are connected to the agent you are removing.
- Reboot (Optional but Recommended): After completing both steps, a system reboot can help to ensure all services are stopped and any remaining kernel modules are unloaded.
- Verify Uninstallation: After the process, you can check if the agent service is still running or if the
/etc/vmware
directory has been removed to confirm the uninstallation.
For further details on managing VMware Horizon components, you can refer to the official VMware Horizon documentation.