How to script a reinstall (apt repo's and installed packages)

Posted by Kurtosis on Ask Ubuntu See other posts from Ask Ubuntu or by Kurtosis
Published on 2012-09-02T15:01:09Z Indexed on 2012/09/02 15:51 UTC
Read the original article Hit count: 259

Filed under:
|
|

I need to wipe my hard drive and reinstall Ubuntu. /home is on a separate partition, so I can back that up to a backup drive, then copy it back to the wiped drive, install ubuntu, and point it at the existing /home, no problem.

However, I also want to script a reinstall of all my apt repo's and the packages I currently have installed, so I don't have to waste hours doing that manually. Anyone know a good way to do this?

PS - At least, I'm pretty sure I have to wipe the drive. Need to install Windows 7, and only have an HP system restore disk that formats the whole drive, and not a legit Windows 7 install disk that lets me install on a single partition. If somebody know a way to trick the system restore disk to install only to a single partition, I'd love to hear it.

© Ask Ubuntu or respective owner

Related posts about installation

Related posts about scripts