VPS OS Reinstall Tutorial (destructive)
This tutorial explains how xyz.sh/dd wraps the pinned bin456789/reinstall script. The operation erases the disk; use it only on a VPS you are ready to wipe.
$ curl -fsSL xyz.sh/dd | bash
Details · xyz.sh/dd · Last updated:
Prerequisites
A VPS you are prepared to wipe, plus root.
Back up anything you still need, and make sure you can sign in after the new OS is installed (password or keys).
Run --dry-run first. Do not do this on a production host whose data you still need.
Steps
Optional: read the source with curl -fsSL xyz.sh/dd.sh and compare xyz.sh/dd.sh.sha256.
Preview: curl -fsSL xyz.sh/dd | bash -s -- --dry-run debian 12
Read the printed pinned commit, SHA256 and forwarded arguments.
Only when you are sure you want to erase the disk: curl -fsSL xyz.sh/dd | bash -s -- --confirm 'ERASE AND REINSTALL' debian 12
Target OS arguments follow upstream, for example ubuntu 24.04. Alias: xyz.sh/reinstall.
How to verify
--dry-run downloads and verifies the SHA256, prints the forwarded arguments, then exits; the installed OS should be unchanged. After a live reinstall starts, the machine follows the upstream installer and you sign in the way the new OS expects.
How to undo or uninstall
A reinstall replaces the whole OS, so there is nothing to uninstall. If you only downloaded the pinned file and did not execute it, the temporary directory is removed when the wrapper exits.