Ubuntu is the first Linux system I have used. It is at first sight, because apt-get is so easy to download and upgrade. From the beginning of Ubuntu installation to the present, many things have been installed from the source. If you want to reinstall the system and re-download it, I am afraid I cannot remember what has been installed. It takes a lot of time, therefore, I thought about whether to back up the downloaded source package so that I can directly use the local apt-get. The following describes how to back up and restore the Ubuntudeb source package: 1
Ubuntu is the first Linux system I have used. It is at first sight, because apt-get is so easy to download and upgrade. From the beginning of Ubuntu installation to the present, many things have been installed from the source. If you want to reinstall the system and re-download it, I am afraid I cannot remember what has been installed. It takes a lot of time, therefore, I thought about whether to back up the downloaded source package so that I can directly use the local apt-get.
The following describes how to back up and restore the Ubuntu deb source package:
1. Backup and Restoration
Back up and quickly set some downloaded software packages so that you can reinstall the system and use them again, eliminating the need for re-download.
Tar cizvf backup.tar.gz/var/cache/apt/archives -- exclude =/var/cache/apt/archives/partial/* -- exclude =/var/cache/apt/archives/lock
Reinstall the system, set the source list, and import the backed up software package. Operation Method: sudo apt-get update & sudo tar xzvf backup.tar.gz-C/
2. Clean up
Sudo apt-get clean
Rm-rf ~ /. Thumbnails/fail/gnome-thumbnail-factory /*