Uninstall
Uninstall
This guide covers how to completely remove HookProbe from your system.
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
Services
hookprobe-provision.servicehookprobe-agent.servicehookprobe-update.servicehookprobe-update.timerDirectories
| Path | Contents |
|---|---|
/opt/hookprobe/ | Scripts, agent, data |
/etc/hookprobe/ | Configuration |
/var/log/hookprobe/ | Logs |
Network
- XDP programs detached
- OVS bridge removed (Fortress)
- Firewall rules removed
- VXLAN tunnels removed
Containers
# All HookProbe containers removedpodman rm --force hookprobe-*Backup Before Uninstall
Create Backup
sudo tar -czf hookprobe-backup-$(date +%Y%m%d).tar.gz \ /opt/hookprobe \ /etc/hookprobe \ /var/log/hookprobeExport Data
# Export metricshookprobe-ctl metrics --history --since 30d > metrics-export.json
# Export configurationhookprobe-ctl config show > config-backup.yamlPartial Removal
Stop Services Only
hookprobe-ctl stopDisable Services
sudo systemctl disable hookprobe-agent.servicesudo systemctl disable hookprobe-provision.serviceRemove XDP Only
# Remove XDP from interfacesudo ip link set dev eth0 xdpgeneric offsudo ip link set dev eth0 xdpdrv offRemove OVS Only (Fortress)
# Delete OVS bridgesudo ovs-vsctl del-br br0Manual 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
Check Services
systemctl list-units | grep hookprobe# Should return nothingCheck Processes
ps aux | grep hookprobe# Should return nothingCheck Directories
ls /opt/hookprobe 2>/dev/nullls /etc/hookprobe 2>/dev/null# Should show "No such file or directory"Check XDP
ip link show | grep xdp# Should show no xdp attachmentsCheck Containers
podman ps -a | grep hookprobe# Should return nothingReinstall
After uninstall, you can reinstall:
git clone https://github.com/hookprobe/hookprobe.gitcd hookprobesudo ./install.sh --tier guardianRestore from Backup
# Extract backupsudo tar -xzf hookprobe-backup-20251207.tar.gz -C /
# Reinstallsudo ./install.sh --tier guardian
# Restart serviceshookprobe-ctl restartClean 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?
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