
Description
The OS templates a VPS host offers are often old or bundled with their own agents, and swapping to a clean Debian or a Windows install usually needs IPMI or a mounted ISO the panel does not give you. reinstall takes one downloaded script and one command over SSH; after a reboot the machine installs the system you asked for, and it reinstalls in any direction between Linux and Windows.
The project has more than 14,000 stars on GitHub. Run reinstall.sh on Linux or reinstall.bat on Windows. Everything is pulled live from official mirrors with no homemade packages, and Windows comes from Microsoft's original ISOs. It wipes the entire disk, other partitions included, does not work on OpenVZ or LXC, and the author advises using IPMI or a USB stick instead when you have them.
Linux in one command: Debian, Ubuntu, Alpine, Kali, RHEL, AlmaLinux, Rocky, Oracle, CentOS Stream, Fedora, openEuler, openSUSE, NixOS, Arch, Gentoo, AOSC OS, Anolis, OpenCloudOS, fnOS and more; omit the version for the latest, with no separate boot or swap partition so the disk goes to the system.
Windows in one command: Installs Vista through Windows 11 and Server 2008 through 2025 from official ISOs found automatically by edition name, or from your own ISO link or magnet; any language works and Windows 11 hardware checks are bypassed.
Drivers handled: Downloads VirtIO, XEN, AWS, GCP, Azure and Intel network and storage drivers as needed so the cloud server comes up online, and --add-driver adds your own.
DD images: Writes raw or fixed size vhd images straight to disk, compressed as gz, xz, zst or tar; Windows images get the system disk expanded and static IPs set, Linux images can take cloud-init data.
Network detection: Works out DHCP versus static and copes with /32, /128, gateways outside the subnet, IPv6 only hosts and IPv4 and IPv6 on different NICs.
Small machines: Alpine and Debian install with 256 MB of RAM, less than the official netboot needs, and disks are identified by partition table ID so the wrong one is never written.
Boot and architecture: BIOS and EFI are both supported, as are ARM servers, and most ARM cloud instances can run Windows 11.
Rescue without reinstalling: Reboot into an in memory Alpine system for backups, partitioning or manual DD, or into netboot.xyz or Talos maintenance mode; nothing is erased unless you do it yourself.
Watch the install: Follow progress over SSH, HTTP on port 80, the provider's VNC console or a serial console; if something fails you can still SSH in, and /trans.sh alpine rescues the box into Alpine.
Handy options: Set the username, password, SSH key (github:username fetches it), SSH and RDP ports and an frpc tunnel, and run reset before rebooting to cancel.
The project has more than 14,000 stars on GitHub. Run reinstall.sh on Linux or reinstall.bat on Windows. Everything is pulled live from official mirrors with no homemade packages, and Windows comes from Microsoft's original ISOs. It wipes the entire disk, other partitions included, does not work on OpenVZ or LXC, and the author advises using IPMI or a USB stick instead when you have them.
Features
Linux in one command: Debian, Ubuntu, Alpine, Kali, RHEL, AlmaLinux, Rocky, Oracle, CentOS Stream, Fedora, openEuler, openSUSE, NixOS, Arch, Gentoo, AOSC OS, Anolis, OpenCloudOS, fnOS and more; omit the version for the latest, with no separate boot or swap partition so the disk goes to the system.
Windows in one command: Installs Vista through Windows 11 and Server 2008 through 2025 from official ISOs found automatically by edition name, or from your own ISO link or magnet; any language works and Windows 11 hardware checks are bypassed.
Drivers handled: Downloads VirtIO, XEN, AWS, GCP, Azure and Intel network and storage drivers as needed so the cloud server comes up online, and --add-driver adds your own.
DD images: Writes raw or fixed size vhd images straight to disk, compressed as gz, xz, zst or tar; Windows images get the system disk expanded and static IPs set, Linux images can take cloud-init data.
Network detection: Works out DHCP versus static and copes with /32, /128, gateways outside the subnet, IPv6 only hosts and IPv4 and IPv6 on different NICs.
Small machines: Alpine and Debian install with 256 MB of RAM, less than the official netboot needs, and disks are identified by partition table ID so the wrong one is never written.
Boot and architecture: BIOS and EFI are both supported, as are ARM servers, and most ARM cloud instances can run Windows 11.
Rescue without reinstalling: Reboot into an in memory Alpine system for backups, partitioning or manual DD, or into netboot.xyz or Talos maintenance mode; nothing is erased unless you do it yourself.
Watch the install: Follow progress over SSH, HTTP on port 80, the provider's VNC console or a serial console; if something fails you can still SSH in, and /trans.sh alpine rescues the box into Alpine.
Handy options: Set the username, password, SSH key (github:username fetches it), SSH and RDP ports and an frpc tunnel, and run reset before rebooting to cancel.


