When a system problem occurs, you may need to reinstall the system or the new version needs to reinstall Ubuntu. How can this problem be solved? After you reinstall the system, you need to install the software you use one by one. Is there a simpler way? The answer is yes. In general, we need to back up the list of installed software, software sources, and user files before reinstalling. Let's take a look at how to implement this! 1. Back up the list of installed software packages sudodpkg-get-selections & gt;/home/user/package.
When a system problem occurs, you need to reinstall the system or reinstall Ubuntu when a new version occurs.
You may have a deep understanding? After you reinstall the system, you need to install the software you use one by one. Is there a simpler way?
The answer is yes. In general, we need to back up the list of installed software, software sources, and user files before reinstalling. Let's take a look at how to implement this!
1. Back up the list of installed software packages
Sudo dpkg-get-selections>/home/user/package. selections
2. Back up the user folder under Home
If you have already placed Home in an additional partition, this step is no longer required. Copy all the content in all user folders to another partition. Be sure to include a hidden file (Ctrl + Hide)
3. Copy the source list of the backup software and save the sources. list in the/etc/apt/folder.
Recovery after the new system is installed:
1. Copy the backup Sources. list file to the/etc/apt/directory of the new system, overwrite the original file, and replace the intrepid in the (Ctrl + H) document with jaunty. Then update the software source (sudo apt-get update ).
2. Re-download the software in the system before installation (if you have installed a large number of software, it may take a long time)
Sudo dpkg-set-selections/home/package. selections & apt-get dselect-upgrade
3. Finally, paste the backup master folder (/home/user name) and overwrite the existing Master folder.
Now, we can use the new Ubuntu system without losing the existing system and software settings!