How to Reinstall a VPS OS with One Command
Tired of your current VPS OS? You can wipe it and install a fresh one with a single script.
It supports Ubuntu 20.04 through 24.04, Debian 11 and 12, Kali, and Windows Server 2016 through 2025. Heads up: the reinstall erases every file on the server, so back up anything you need before you run it.

Tutorial
- Run the reinstall command for the Ubuntu version you want. The script downloads itself, makes itself executable, and starts the install.
```bash
# Ubuntu 20.04
wget https://raw.githubusercontent.com/bin456789/reinstall/main/reinstall.sh -O reinstall.sh && chmod +x reinstall.sh && bash reinstall.sh ubuntu 20.04
# Ubuntu 22.04
wget https://raw.githubusercontent.com/bin456789/reinstall/main/reinstall.sh -O reinstall.sh && chmod +x reinstall.sh && bash reinstall.sh ubuntu 22.04
# Ubuntu 24.04
wget https://raw.githubusercontent.com/bin456789/reinstall/main/reinstall.sh -O reinstall.sh && chmod +x reinstall.sh && bash reinstall.sh ubuntu 24.04
```
- Run the matching reinstall command for Debian 11 or 12.
```bash
# Debian 11
wget https://raw.githubusercontent.com/bin456789/reinstall/main/reinstall.sh -O reinstall.sh && chmod +x reinstall.sh && bash reinstall.sh debian 11
# Debian 12
wget https://raw.githubusercontent.com/bin456789/reinstall/main/reinstall.sh -O reinstall.sh && chmod +x reinstall.sh && bash reinstall.sh debian 12
```
- Run this reinstall command for Kali Linux.
```bash
wget https://raw.githubusercontent.com/bin456789/reinstall/main/reinstall.sh -O reinstall.sh && chmod +x reinstall.sh && bash reinstall.sh kali
```
- Run the reinstall command for Windows Server 2025, 2022, or 2016.
```bash
# Windows Server 2025
wget https://raw.githubusercontent.com/bin456789/reinstall/main/reinstall.sh -O reinstall.sh && chmod +x reinstall.sh && bash reinstall.sh windows \
--image-name "Windows Server 2025 SERVERDATACENTER" \
--rdp-port "22"
# Windows Server 2022
wget https://raw.githubusercontent.com/bin456789/reinstall/main/reinstall.sh -O reinstall.sh && chmod +x reinstall.sh && bash reinstall.sh windows \
--image-name "Windows Server 2022 SERVERDATACENTER" \
--rdp-port "22"
# Windows Server 2016
wget https://raw.githubusercontent.com/bin456789/reinstall/main/reinstall.sh -O reinstall.sh && chmod +x reinstall.sh && bash reinstall.sh windows \
--image-name "Windows Server 2016 SERVERDATACENTER" \
--rdp-port "22"
```
- Open the README for all other OS options. It lists every reinstall option.
Wrapping Up
You now have a one-command way to reinstall any of these operating systems on your VPS. Just make sure to back up your data first, because the script wipes the entire disk. Pick the command for the OS you want, run it, and let the script do the rest.
Does this still work?
Nobody's checked yet
Sign in to tell everyone how it went.
Continue with GoogleBe the first — one tap saves the next person an hour.
It takes 3 reports in 30 days to set the status.
More shares you might like
AIHow to Get Free $200 Funds on Digital OceanAlex Ruiez · 1y · 781 views
ToolsHow to Use GPT-5.6 and Claude for Free on Duck.aiAnonymous · 1w · 71 views
ToolsHow to Avoid 5 Amazon Associates Registration MistakesAnonymous · 3w · 58 views
ToolsHow to Get Free Cursor Pro by Switching SubscriptionsAnonymous · 2w · 98 views
AIHow to Claim 10k Free AI Video CreditsAnonymous · 1mo · 90 views
AIPlayco Reports 50% Fewer Manual Fixes With GPT-6 AstraAnonymous · 4d · 28 views
Comments
Join the conversation — sign in to comment.
No comments yet — start the conversation!