Author: gnuhpc
Source: http://www.cnblogs.com/gnuhpc/
For some reason, for example, you need to reinstall Ubuntu because the Ubuntu system is mounted to an independent partition, As long as/home is not formatted/home when you reinstall ubuntu, many software configuration files are still available, but in addition to the pre-installed Ubuntu software, other software and software packages need to be reinstalled, is there any easy way to quickly reinstall the software and software packages before Ubuntu. Thanks to synaptic, we can easily reinstall installed software packages.
Before you reinstall Ubuntu, choose system> System Management> New Software Package Manager ", in the new software package manager, choose File> Save marked project to save the file to/home. If the Ubuntu source you use is not the default source, you can back up the Ubuntu source to facilitate future replacement:
$ Sudo CP/etc/APT/sources. List ~ /Sources. List
Now you can reinstall ubuntu. format the root directory/mounted partition, but do not format the partition mounted to/home. After the reinstallation is complete, restore the source:
$ Sudo CP ~ /Sources. LIST/etc/APT/sources. List
Start the "New Software Package Manager" and click "file"> "read marked Project" in the menu to open the backup file stored in/home, click "application" on the toolbar to reinstall the software packages installed on the old system.
Author: gnuhpc
Source: http://www.cnblogs.com/gnuhpc/