Upgrade & Uninstall

Upgrade

If you installed via the install script, use the built-in update command:

# macOS (no sudo needed — installs to ~/.local/bin or /usr/local/bin based on original install)
demarkus-install update

# Linux server install (sudo required if installed to /usr/local/bin)
sudo demarkus-install update

This downloads the latest server and client releases, verifies checksums, replaces binaries, and restarts the service.

Re-running the install script

Re-running the install script is safe and idempotent. It:

# macOS client update
curl -fsSL https://raw.githubusercontent.com/latebit-io/demarkus/main/install.sh | bash -s -- --client-only

# Linux server + client update
curl -fsSL https://raw.githubusercontent.com/latebit-io/demarkus/main/install.sh | sudo bash

What gets updated

What is preserved

Check installed version

The binaries don’t expose a --version flag. The installer records the installed release in a version marker:

# Linux
cat /etc/demarkus/version

# macOS
cat ~/.demarkus/version

demarkus-install update reads this same marker and reports the current vs. latest release before updating.

Uninstall

# macOS
demarkus-install uninstall

# Linux
sudo demarkus-install uninstall

This removes all installed binaries and the service configuration. Your content directory and tokens file are not removed.

To also remove config and data:

# macOS
rm -rf ~/.demarkus

# Linux
sudo rm -rf /etc/demarkus