---
title: "Aktualisieren, zurücksetzen und deinstallieren | Wantastic Docs"
description: "Aktualisiere oder deinstalliere wantasticd mit einer Zeile pro Betriebssystem. Außerdem: wie das Auto-Update funktioniert, wie du es abschaltest, wie du zur vorherigen Binärdatei zurückkehrst und alle Daten entfernst."
url: "https://wantastic.app/de/docs/update-and-uninstall"
category: "Install wantasticd"
reading_time: "5 Min."
---

# Aktualisieren, zurücksetzen und deinstallieren

Aktualisiere oder deinstalliere wantasticd mit einer Zeile pro Betriebssystem. Außerdem: wie das Auto-Update funktioniert, wie du es abschaltest, wie du zur vorherigen Binärdatei zurückkehrst und alle Daten entfernst.

> **Outcome:** Du kannst wantasticd mit einem Befehl aktualisieren oder entfernen, dich in einer Minute von einem fehlerhaften Update erholen und das Auto-Update steuern.

## Before you start

- Root oder Administrator auf dem Gerät.

## Aktualisieren oder deinstallieren in einer Zeile

Wähle dein System. Beim Aktualisieren bleiben deine Zuordnung und Einstellungen erhalten. Beim Deinstallieren bleibt die Konfiguration ebenfalls erhalten, sodass eine spätere Installation sich als dasselbe Gerät neu verbindet.

### Linux / macOS

Aktualisieren / deinstallieren:

```bash
# update
sudo wantasticd update
# uninstall (keeps the config)
curl -fsSL https://get.wantastic.app/install.sh | sudo sh -s -- --uninstall
```

### OpenWrt / Alpine

Aktualisieren / deinstallieren (als root):

```sh
# update
wantasticd update
# uninstall (keeps the config)
wget -qO- https://get.wantastic.app/install.sh | sh -s -- --uninstall
```

### BusyBox

Aktualisiere unter BusyBox von Hand. Ein automatisches Update kann dort eine zweite Instanz starten. Ersetze <arch> durch deinen Build.

Aktualisieren / deinstallieren (als root):

```sh
# update
cd /tmp && TAG=$(wget -qO- https://get.wantastic.app/latest | cut -d+ -f1) && wget -O w.tgz https://get.wantastic.app/$TAG/wantasticd-linux-<arch>.tar.gz && tar -xzf w.tgz && ./wantasticd version && cp /usr/bin/wantasticd /usr/bin/wantasticd.previous && cp wantasticd /usr/bin/wantasticd.new && mv /usr/bin/wantasticd.new /usr/bin/wantasticd && killall wantasticd
# uninstall (keeps the config)
wget -qO- https://get.wantastic.app/install.sh | sh -s -- --uninstall
```

### Windows

PowerShell (Administrator):

```powershell
# update
wantasticd update
# uninstall (keeps the config)
sc.exe stop wantasticd; sc.exe delete wantasticd; Get-Process wantasticd -ErrorAction SilentlyContinue | Stop-Process -Force; Remove-ItemProperty -Path 'HKLM:\Software\Microsoft\Windows\CurrentVersion\Run' -Name 'Wantastic' -ErrorAction SilentlyContinue; Remove-Item -Recurse -Force 'C:\Program Files\Wantastic'
```

> Führe install.ps1 nicht nur zum Aktualisieren erneut aus. Es meldet sich neu an und kann eine funktionierende Konfiguration ersetzen.

### Docker

Aktualisieren / deinstallieren:

```bash
# update: rebuild the image, then start the container again
docker build --no-cache -t wantasticd-local --build-arg WANTASTIC_ARCH=amd64 .
docker rm -f wantasticd
# uninstall
docker rm -f wantasticd && docker volume rm wantastic
```

*wantasticd update: Das Update läuft im Hintergrund. Der Dienst startet mit der neuen Version neu.*

```
$ $ sudo wantasticd update
Updating from v1.0.53+9c1e2aa to v1.0.54+377f3c0...
2026/10/29 09:20:11 Running update script for version v1.0.54+377f3c0 (target: /usr/local/bin/wantasticd, log: /tmp/wantasticd-update-3141.log)...
$ $ wantasticd version
wantasticd version v1.0.54+377f3c0
$ $ sudo wantasticd update
No newer release available: current=v1.0.54+377f3c0 offered=v1.0.54+377f3c0
```

> **Tip:** Die Deinstallation entfernt das Gerät nicht aus deinem Konto. Lösche es im Konsolenfenster Devices (Zeile → Delete), um den Platz freizugeben.

## Alles entfernen (Purge)

--purge löscht außerdem die Konfiguration und die Geräteschlüssel. Eine spätere Installation braucht dann eine neue Zuordnung.

Purge:

```bash
# Linux / macOS
curl -fsSL https://get.wantastic.app/install.sh | sudo sh -s -- --purge
# OpenWrt / Alpine / BusyBox (as root)
wget -qO- https://get.wantastic.app/install.sh | sh -s -- --purge
```

Windows (nach der Deinstallationszeile):

```powershell
Remove-Item -Recurse -Force 'C:\ProgramData\Wantastic'
```

| Plattform | --uninstall entfernt | --purge entfernt zusätzlich |
| --- | --- | --- |
| Linux (systemd) | Unit, Binärdateien (+ .previous/.new), laufenden Prozess | /etc/wantastic, /usrdata/wantastic |
| OpenWrt / OpenRC / SysV | /etc/init.d/wantasticd und seine Runlevel-Links, Binärdateien | /etc/wantastic |
| BusyBox | Init-Skript, inittab-Zeile (dann kill -HUP 1), Binärdateien | /etc/wantastic |
| macOS | LaunchDaemon- und LaunchAgent-Plists, Binärdateien | /Library/Application Support/Wantastic, /Library/Logs/Wantastic |

*Deinstallieren: Ohne --purge bleibt die Konfiguration erhalten, sodass eine spätere Installation sich als dasselbe Gerät neu verbindet.*

```
$ $ curl -fsSL https://get.wantastic.app/install.sh | sudo sh -s -- --uninstall
=== Uninstalling wantasticd ===
Removed "/etc/systemd/system/multi-user.target.wants/wantasticd.service".
Configuration kept (use --purge to remove it).
wantasticd uninstalled.
```

## So funktioniert das Auto-Update

- Das Auto-Update ist standardmäßig aktiv. Der Daemon sucht 1 Minute nach dem Start nach einem neuen Release, danach stündlich.
- Es installiert nur neuere Releases. Es führt nie ein Downgrade durch.
- Es behält die alte Binärdatei als .previous, startet den Dienst neu und prüft, ob er fehlerfrei läuft. Falls nicht, stellt es die alte Binärdatei wieder her.
- Fehler werden protokolliert und bei der nächsten stündlichen Prüfung erneut versucht.

## Auto-Update abschalten

Füge --no-auto-update zum Befehl hinzu, den dein Dienst ausführt.

### systemd

ExecStart überschreiben:

```bash
sudo systemctl edit wantasticd
# [Service]
# ExecStart=
# ExecStart=/usr/local/bin/wantasticd connect --config "/etc/wantastic/config.conf" --no-auto-update
sudo systemctl restart wantasticd
wantasticd status | grep 'Auto update'
```

### OpenWrt (procd)

Befehlszeile bearbeiten:

```sh
sed -i "s|connect --config '/etc/wantastic/config.conf'|connect --config '/etc/wantastic/config.conf' --no-auto-update|" /etc/init.d/wantasticd
/etc/init.d/wantasticd restart
```

### OpenRC

command_args bearbeiten:

```sh
# /etc/init.d/wantasticd
command_args="connect --config '/etc/wantastic/config.conf' --no-auto-update"
rc-service wantasticd restart
```

### BusyBox

exec-Zeile bearbeiten:

```sh
sed -i 's| connect --config \(.*\)$| connect --config \1 --no-auto-update|' /etc/init.d/wantasticd
killall wantasticd
```

### macOS

Füge in der Plist <string>--no-auto-update</string> nach <string>--tray=false</string> ein und lade sie dann neu.

LaunchDaemon neu laden:

```bash
sudo nano /Library/LaunchDaemons/com.wantastic.wantasticd.plist
sudo launchctl bootout system/com.wantastic.wantasticd
sudo launchctl bootstrap system /Library/LaunchDaemons/com.wantastic.wantasticd.plist
```

### Windows

PowerShell (Administrator):

```powershell
sc.exe config wantasticd binPath= '"C:\Program Files\Wantastic\wantasticd.exe" connect --config "C:\ProgramData\Wantastic\config.conf" --tray=false --no-auto-update'
Restart-Service wantasticd
```

> **Operational note:** Ein erneuter Installer-Lauf schreibt den Dienst ohne --no-auto-update neu. Wende deine Änderung danach erneut an.

## Zur vorherigen Binärdatei zurückkehren

Jede Installation und jedes Update behält die alte Binärdatei als .previous neben der aktuellen.

### Linux (systemd)

Zurücksetzen:

```bash
sudo systemctl stop wantasticd
sudo mv /usr/local/bin/wantasticd.previous /usr/local/bin/wantasticd
sudo systemctl start wantasticd
```

### OpenWrt

Zurücksetzen:

```sh
/etc/init.d/wantasticd stop
mv /usr/bin/wantasticd.previous /usr/bin/wantasticd
/etc/init.d/wantasticd start
```

### macOS

Zurücksetzen:

```bash
sudo launchctl bootout system/com.wantastic.wantasticd
sudo mv /usr/local/bin/wantasticd.previous /usr/local/bin/wantasticd
sudo launchctl bootstrap system /Library/LaunchDaemons/com.wantastic.wantasticd.plist
```

### Windows

PowerShell (Administrator):

```powershell
Stop-Service wantasticd
Get-Process wantasticd -ErrorAction SilentlyContinue | Stop-Process -Force
Rename-Item "C:\Program Files\Wantastic\wantasticd.exe" wantasticd.exe.bad
Rename-Item "C:\Program Files\Wantastic\wantasticd.exe.previous" wantasticd.exe
Start-Service wantasticd
```

> **Warning:** Das Auto-Update bringt dich innerhalb der nächsten Stunde wieder auf den neuesten Stand. Schalte das Auto-Update ab (siehe oben), um auf der älteren Version zu bleiben, und teile dem Support mit, welche Version fehlerhaft war.

## Verify the result

- Nach einem Update: wantasticd version zeigt die neue Version und status zeigt Connected.
- Nach dem Abschalten der Updates: wantasticd status zeigt Auto update: false.
- Nach der Deinstallation: which wantasticd gibt nichts aus und der Dienst existiert nicht mehr.

## Common issues

### Das Update schlägt fehl und die alte Version läuft weiter.

```
Self-update failed; agent remains active and will retry on the next scheduled check: …
```

- **Where:** Dienst-Log
- **Likely cause:** Der Download, die Prüfung oder der Neustart ist fehlgeschlagen. Der Agent läuft mit der aktuellen Version weiter.
- **Fix:** Lies das Update-Log, behebe die Ursache (Netzwerk, Speicherplatz) und aktualisiere dann erneut.

Log lesen, dann erneut versuchen:

```bash
ls -t /tmp/wantasticd-update-*.log | head -n 1 | xargs tail -n 50
sudo wantasticd update
```

### Das Update wurde automatisch zurückgesetzt.

```
Error: updated service failed health verification; restoring previous binary
```

- **Where:** Update-Log
- **Likely cause:** Die neue Version ist nicht korrekt gestartet. Die vorherige Version wurde wiederhergestellt.
- **Fix:** Auf dem Gerät ist nichts zu beheben. Teile dem Support die Versionsnummer mit und schalte das Auto-Update ab, bis ein Fix erscheint.

### Das Update verweigert die Ausführung in einem Container oder einem eigenen Dienst.

```
Error: no supported service manager found; refusing an unverifiable update
```

- **Where:** Update-Log
- **Likely cause:** Es gibt keinen launchd-, systemd-, procd-, OpenRC- oder init.d-Dienst, der neu gestartet werden könnte.
- **Fix:** Verwende --no-auto-update und aktualisiere, indem du die Binärdatei ersetzt (oder das Image neu baust).

### Das Update schlägt auf einem vollen oder schreibgeschützten Dateisystem fehl.

```
Error: cannot write to /usr/bin (check permissions)
```

- **Where:** Update-Log
- **Likely cause:** Der Ordner der Binärdatei ist schreibgeschützt oder voll ("Error: cannot back up <bin>" ist dasselbe Problem).
- **Fix:** Schaffe etwas Platz und aktualisiere dann erneut.

Speicher prüfen, dann erneut versuchen:

```bash
df -h
sudo wantasticd update
```

### Das Update hat eine Zeitüberschreitung.

```
update attempt timed out after 7m0s (log kept at /tmp/wantasticd-update-XXXX.log)
```

- **Where:** Dienst-Log
- **Likely cause:** Die Verbindung ist sehr langsam, oder der Neustart des Dienstes hing.
- **Fix:** Führe das Update von Hand aus, wenn die Verbindung besser ist. Erhöhe bei langsamen Verbindungen WANTASTIC_UPDATE_DOWNLOAD_TIMEOUT.

Erneut versuchen:

```bash
sudo wantasticd update
```

### Eine selbst gebaute Binärdatei verweigert das Update.

```
Invalid update version: parse current version: version "dev" is not major.minor.patch
```

- **Where:** wantasticd update
- **Likely cause:** Lokale Builds melden die Version dev.
- **Fix:** Installiere ein offizielles Release mit dem Installer.

Offizielles Release installieren:

```bash
curl -fsSL https://get.wantastic.app/install.sh | sudo sh
```

### Ein Windows-Update wurde zurückgesetzt.

```
update-finish: wantasticd unhealthy after update to <v>: …; restoring previous binary
```

- **Where:** Windows-Update-Helfer
- **Likely cause:** Der neue Dienst ist nicht korrekt gestartet. Der fehlerhafte Build wird als wantasticd.exe.failed aufbewahrt.
- **Fix:** Nichts Dringendes; die vorherige Version läuft. Wenn du außerdem "update-finish: previous binary did not start either" siehst, installiere erneut mit install.ps1 -Token.

### Unter Windows lässt sich der Dienst nicht löschen.

```
[SC] DeleteService FAILED 1072: The specified service has been marked for deletion.
```

- **Where:** sc.exe
- **Likely cause:** services.msc oder ein anderes Tool hat den Dienst noch geöffnet.
- **Fix:** Schließe services.msc und die Ereignisanzeige oder starte neu. Führe dann die Deinstallationszeile erneut aus.

## Continue with

- [wantasticd CLI reference and operations](https://wantastic.app/de/docs/wantasticd): The most used wantasticd commands first, then every command and flag, environment variables, config and state paths per OS, log lines, local access, exit node, and the claim flow (genkey / --wait-claim).
- [Choose your install method](https://wantastic.app/de/docs/install-overview): Find your device in one table and copy one command. Most devices install in 2 minutes: install, scan a QR code, click Claim Device.
- [Update and rollback errors](https://wantastic.app/de/docs/errors-update): Fix self-update failures, read the update log and roll back to the previous binary.
- [Install on Windows](https://wantastic.app/de/docs/install-windows): Install wantasticd on Windows 10/11 and Windows Server: open PowerShell as Administrator, paste one line, approve the device in your browser.
- [Install on macOS](https://wantastic.app/de/docs/install-macos): Install wantasticd on a Mac (Apple silicon or Intel) in 2 minutes: one Terminal command, scan a QR code, click Claim Device.
- [Install on Debian and Ubuntu](https://wantastic.app/de/docs/install-debian-ubuntu): Install wantasticd on Debian, Ubuntu, Mint and Proxmox in 2 minutes: one command, scan a QR code, click Claim Device.
