Uninstalling the host agent on Linux
To uninstall the Instana agent from Linux, use the following methods:
Uninstalling on Debian derivatives
To uninstall the host agent on Debian-based derivatives, complete the following steps:
-
Get the name of the package that is installed on your system by running the following command:
apt list --installed | grep instana-agent
The output holds the exact package name to use for the uninstall command. In the following example, the package name is
instana-agent-static-j9/generic
:instana-agent-static-j9/generic,now 20221024-1455 amd64 [installed]
-
Uninstall the agent by running the following command:
sudo apt-get purge <package_name>
Replace <package_name> with the package name that you get in step 1.
Uninstalling on Red Hat derivatives
To uninstall the host agent on Red Hat derivatives, complete the following steps:
-
Get the name of the package that is installed on your system by running the following command:
yum list installed | grep instana-agent
The output holds the exact package name to use for the uninstallation command. In the following example, the package name is
instana-agent-static-j9.x86_64
:instana-agent-static-j9.x86_64 20221024-1455 @instana-agent
-
Uninstall the agent by running the following command:
sudo yum remove <package_name>
Replace <package_name> with the package name that you get in step 1.
For SUSE and Red Hat derivatives, some files that are created by the Instana agent are not part of the uninstallation package on rollout. You need to remove the agent installation directory manually. To remove the installation directory, run
the rm -rf /opt/instana/agent
command.