Uninstalling the Light Agent for Linux component
July 3, 2024
ID 95041
You can remove Light Agent for Linux from a virtual machine in one of the following ways:
- Locally from the command line
- Remotely via Kaspersky Security Center (see the Kaspersky Security Center help)
To uninstall Light Agent for Linux from the command line,
execute one of the following commands (depending on the package manager used in the operating system):
# rpm -e lightagent
, if Light Agent was installed from an RPM package# dpkg -P lightagent
, if Light Agent was installed from a DEB package
The uninstallation procedure is performed automatically. All tasks running on a virtual machine during uninstallation of Light Agent for Linux are stopped.
When Light Agent for Linux is uninstalled, the application prompts you to run a script that deletes from the protected virtual machine the files that were created during operation of the application in the following folders:
- /etc/opt/kaspersky/lightagent/
- /opt/kaspersky/lightagent/
- /var/opt/kaspersky/lightagent/
- /var/log/kaspersky/lightagent/
To delete the files that were created during the application operation using the script:
- Run the script by execute the following command:
# /tmp/cleanup.pl
- Confirm deletion of files by entering
yes
. If you do not want to delete files and want to stop the script, enterno
.
You can also manually delete files that were created during operation of the application.
To manually delete the files that were created during the application operation,
run the following command
rm -rf <
path to the folder
>
After uninstalling Light Agent for Linux, it is recommended to restart the virtual machine.