Skip to content

Updating & Uninstalling

Terminal window
# CLI (any machine)
bhatti update
# Server (updates CLI, kernel, rootfs, lohar)
sudo bhatti update
# Server, but only the CLI binary
bhatti update --cli-only
# Server + install additional rootfs tiers
sudo bhatti update --tiers all
sudo bhatti update --tiers browser,docker

Only changed components are downloaded — if the kernel and rootfs haven’t changed since your last update, they’re skipped automatically.

Use --cli-only on a server when you want to test a CLI fix without touching kernel/rootfs/lohar. Use --tiers to pull additional rootfs images (minimal, browser, docker, computer) without re-running the full install.

Or re-run the install command:

Terminal window
curl -fsSL bhatti.sh/install | bash # CLI
curl -fsSL bhatti.sh/install | sudo bash # server
Terminal window
bhatti version

Shows the installed version and checks GitHub for the latest release. Update notices also appear in bhatti admin status.

Terminal window
curl -fsSL bhatti.sh/uninstall | sudo bash

Removes binaries and the systemd service. Keeps /var/lib/bhatti (images, volumes, snapshots, secrets, database) so you can reinstall later without losing state.

Terminal window
curl -fsSL bhatti.sh/uninstall | sudo bash -s -- --purge

Removes all data including volumes, snapshots, and the encryption key.

Terminal window
sudo rm /usr/local/bin/bhatti
rm -rf ~/.bhatti