{"id":23870019,"url":"https://github.com/p7e4/reinstall","last_synced_at":"2026-05-19T05:35:58.417Z","repository":{"id":270546989,"uuid":"910712365","full_name":"p7e4/reinstall","owner":"p7e4","description":"Reinstall your VPS with cloud image","archived":false,"fork":false,"pushed_at":"2025-01-01T07:15:28.000Z","size":18,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-01-01T08:18:47.120Z","etag":null,"topics":["dd","debian","reinstall","ubuntu","vps"],"latest_commit_sha":null,"homepage":"","language":"Shell","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"gpl-3.0","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/p7e4.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2025-01-01T06:47:57.000Z","updated_at":"2025-01-01T07:17:26.000Z","dependencies_parsed_at":"2025-01-07T11:33:19.649Z","dependency_job_id":null,"html_url":"https://github.com/p7e4/reinstall","commit_stats":null,"previous_names":["p7e4/reinstall"],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/p7e4%2Freinstall","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/p7e4%2Freinstall/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/p7e4%2Freinstall/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/p7e4%2Freinstall/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/p7e4","download_url":"https://codeload.github.com/p7e4/reinstall/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":240215609,"owners_count":19766443,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["dd","debian","reinstall","ubuntu","vps"],"created_at":"2025-01-03T13:33:55.358Z","updated_at":"2026-05-19T05:35:58.413Z","avatar_url":"https://github.com/p7e4.png","language":"Shell","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Reinstall\n\nA simple script to reinstall your VPS to major Linux system using cloud image.\n\n## Features\n\n- **short code**: under 300 lines of Bash, easy to read and audit\n- **mirror setup**: automatically set up the system package manager mirror for CN region\n- **cloud image**: use official cloud image, all tweaks via `cloud-init`, no hidden changes\n\n## System Support\n\n| System    | Version | Image                                          | Size |\n|-----------|---------|------------------------------------------------|------|\n| Debian    | 13      | debian-13-genericcloud-amd64.qcow2             | 323M |\n| Ubuntu    | 26.04   | resolute-server-cloudimg-amd64v3.img           | 818M |\n| Fedora    | 44      | Fedora-Cloud-Base-Generic-44-1.7.x86_64.qcow2  | 556M |\n| Rocky     | 10      | Rocky-10-GenericCloud-Base.latest.x86_64.qcow2 | 548M |\n| AlmaLinux | 10      | AlmaLinux-10-GenericCloud-latest.x86_64.qcow2  | 488M |\n| Archlinux | rolling | Arch-Linux-x86_64-cloudimg.qcow2               | 525M |\n\nThe host system require **Debian 10/Ubuntu 18/Fedora 42/Rocky Linux 9(target system not fedora/archlinux)/AlmaLinux 9/archlinux and above**, older version might work but not been fully tested.\n\n\u003e The minimum memory requirement for the host server should exceed the size of the image, better double.\n\n## Quick Start\n\n```\n# Download the reinstall.sh\n# or https://raw.githubusercontent.com/p7e4/reinstall/refs/heads/main/reinstall.sh\ncurl -O https://cdn.jsdelivr.net/gh/p7e4/reinstall/reinstall.sh\n\n# reinstall system to debian and setup password\nbash reinstall.sh -p \u003cyour_password\u003e -s debian\n\n# reinstall system to debian and setup ssh key\nbash reinstall.sh -k \u003cyour_ssh-key\u003e -s debian\n```\nafter reboot, ssh to your server with root user\n\n## Parameters\n\n| Optional | Default      | Description               |\n|----------|--------------|---------------------------|\n| -k       | none         | ssh key authentication    |\n| -p       | none         | password                  |\n| -n       | vm-$(system) | hostname                  |\n| -s       | none         | target system, one of debian/ubuntu/fedora/rocky/almalinux/arch |\n\n## Related Repositories\n\n- [bin456789/reinstall](https://github.com/bin456789/reinstall)\n- [bohanyang/debi](https://github.com/bohanyang/debi)\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fp7e4%2Freinstall","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fp7e4%2Freinstall","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fp7e4%2Freinstall/lists"}