Backup and recovery methods of Ubuntudeb source package

Source: Internet
Author: User
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 /*

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.