Uninstall
Uninstall
Section titled “Uninstall”This guide covers how to completely remove HookProbe from your system.
Quick Uninstall
Section titled “Quick Uninstall”sudo hookprobe-ctl uninstallThis will:
- Stop all services
- Disable systemd units
- Remove XDP programs
- Remove containers
- Remove OVS bridge
- Remove firewall rules
- Remove files
What Gets Removed
Section titled “What Gets Removed”Services
Section titled “Services”hookprobe-provision.servicehookprobe-agent.servicehookprobe-update.servicehookprobe-update.timerDirectories
Section titled “Directories”| Path | Contents |
|---|---|
/opt/hookprobe/ |
Scripts, agent, data |
/etc/hookprobe/ |
Configuration |
/var/log/hookprobe/ |
Logs |
Network
Section titled “Network”- XDP programs detached
- OVS bridge removed (Fortress)
- Firewall rules removed
- VXLAN tunnels removed
Containers
Section titled “Containers”# All HookProbe containers removedpodman rm --force hookprobe-*Backup Before Uninstall
Section titled “Backup Before Uninstall”Create Backup
Section titled “Create Backup”sudo tar -czf hookprobe-backup-$(date +%Y%m%d).tar.gz \ /opt/hookprobe \ /etc/hookprobe \ /var/log/hookprobeExport Data
Section titled “Export Data”# Export metricshookprobe-ctl metrics --history --since 30d > metrics-export.json
# Export configurationhookprobe-ctl config show > config-backup.yamlPartial Removal
Section titled “Partial Removal”Stop Services Only
Section titled “Stop Services Only”hookprobe-ctl stopDisable Services
Section titled “Disable Services”sudo systemctl disable hookprobe-agent.servicesudo systemctl disable hookprobe-provision.serviceRemove XDP Only
Section titled “Remove XDP Only”# Remove XDP from interfacesudo ip link set dev eth0 xdpgeneric offsudo ip link set dev eth0 xdpdrv offRemove OVS Only (Fortress)
Section titled “Remove OVS Only (Fortress)”# Delete OVS bridgesudo ovs-vsctl del-br br0Manual Uninstall
Section titled “Manual Uninstall”For complete manual removal:
# 1. Stop servicessudo systemctl stop hookprobe-agent.servicesudo systemctl stop hookprobe-provision.service
# 2. Disable servicessudo systemctl disable hookprobe-agent.servicesudo systemctl disable hookprobe-provision.service
# 3. Remove systemd unitssudo rm /etc/systemd/system/hookprobe-*.servicesudo rm /etc/systemd/system/hookprobe-*.timersudo systemctl daemon-reload
# 4. Remove XDPsudo ip link set dev eth0 xdpgeneric off 2>/dev/nullsudo ip link set dev eth0 xdpdrv off 2>/dev/null
# 5. Remove OVS (Fortress)sudo ovs-vsctl del-br br0 2>/dev/null
# 6. Remove containerspodman rm --force $(podman ps -a --filter name=hookprobe -q) 2>/dev/null
# 7. Remove directoriessudo rm -rf /opt/hookprobesudo rm -rf /etc/hookprobesudo rm -rf /var/log/hookprobe
# 8. Remove firewall rules (ufw)sudo ufw delete allow 8888/tcpsudo ufw delete allow 8144/udpsudo ufw delete allow 7946
# 9. Remove Python packages (optional)pip3 uninstall hookprobe -y 2>/dev/nullVerify Removal
Section titled “Verify Removal”Check Services
Section titled “Check Services”systemctl list-units | grep hookprobe# Should return nothingCheck Processes
Section titled “Check Processes”ps aux | grep hookprobe# Should return nothingCheck Directories
Section titled “Check Directories”ls /opt/hookprobe 2>/dev/nullls /etc/hookprobe 2>/dev/null# Should show "No such file or directory"Check XDP
Section titled “Check XDP”ip link show | grep xdp# Should show no xdp attachmentsCheck Containers
Section titled “Check Containers”podman ps -a | grep hookprobe# Should return nothingReinstall
Section titled “Reinstall”After uninstall, you can reinstall:
git clone https://github.com/hookprobe/hookprobe.gitcd hookprobesudo ./install.sh --tier guardianRestore from Backup
Section titled “Restore from Backup”# Extract backupsudo tar -xzf hookprobe-backup-20251207.tar.gz -C /
# Reinstallsudo ./install.sh --tier guardian
# Restart serviceshookprobe-ctl restartClean System Packages
Section titled “Clean System Packages”If you want to remove installed dependencies:
# Remove packages (optional - may affect other software)sudo apt remove --purge podman openvswitch-switch
# Clean upsudo apt autoremoveNeed Help?
Section titled “Need Help?”If you encounter issues during uninstall:
- Check logs:
journalctl -u hookprobe-* --since "1 hour ago" - Manual cleanup: Follow steps above
- Report issues: https://github.com/hookprobe/hookprobe/issues