This guide provides step-by-step instructions to completely remove the Cymetricx Agent from Linux servers running Debian/Ubuntu (APT-based) or RHEL/CentOS/Fedora (DNF/YUM-based) distributions.
Before uninstalling the agent, stop its running service:
sudo systemctl stop cymetricx
Prevent the service from starting automatically in the future:
sudo systemctl disable cymetricx sudo systemctl mask cymetricx
sudo apt purge cymetricx -y
sudo dnf remove cymetricx -y
Clean up any residual service configurations:
sudo rm -rf /etc/systemd/system/cymetricx.service sudo rm -rf /usr/lib/systemd/system/cymetricx.service
Delete the agent’s configuration directory:
sudo rm -rf /etc/cymetricx
Finally, reload the systemd manager to reflect changes:
sudo systemctl daemon-reload
To ensure the agent has been successfully removed, check if any processes are still running:
ps aux | grep cymetricx
Additionally, check the status of the service to confirm it is inactive:
sudo systemctl status cymetricx
The following scripts perform all steps in one go, separated for Debian/Ubuntu and RHEL/CentOS/Fedora systems:
# Stop the Cymetricx service sudo systemctl stop cymetricx # Disable and mask the service to prevent auto-start sudo systemctl disable cymetricx sudo systemctl mask cymetricx # Remove the package sudo apt purge cymetricx -y # Remove systemd service files sudo rm -rf /etc/systemd/system/cymetricx.service sudo rm -rf /usr/lib/systemd/system/cymetricx.service # Remove configuration and data files sudo rm -rf /etc/cymetricx # Reload systemd daemon to apply changes sudo systemctl daemon-reload # Verify service status sudo systemctl status cymetricx
# Stop the Cymetricx service sudo systemctl stop cymetricx # Disable and mask the service to prevent auto-start sudo systemctl disable cymetricx sudo systemctl mask cymetricx # Remove the package sudo dnf remove cymetricx -y # Remove systemd service files sudo rm -rf /etc/systemd/system/cymetricx.service sudo rm -rf /usr/lib/systemd/system/cymetricx.service # Remove configuration and data files sudo rm -rf /etc/cymetricx # Reload systemd daemon to apply changes sudo systemctl daemon-reload # Verify service status sudo systemctl status cymetricx
Following these steps will completely remove the Cymetricx Agent from your system. If you need to reinstall the agent in the future, refer to the official installation documentation.