I have very slow internet connection. It sometimes manages to reach as high as 20 KBps!! Installing large packages like K3B or wine or some games takes takes too much time. If ever somehow I want to reinstall Ubuntu then I have to reinstall all this packages which is pain. So how to backup this application?
4 Answers
Yes, aptonCD will do that, If you want to backup them manually, just copy the /var/cache/ap/archives directory.And in the new system, Just copy the backed up cache and overwrite the same directory with root permissions, use synaptic to install those (But you will have to install dependencies manually) But if you have deleted the cache recently, you won't get them!.If you have windows intalled and use a wubi installation, just backup the wubi root file elsewhere. I think that's the best method to backup your system and make experiments on ubuntu!
-
-
1If you use aptoncd(click on the link - it will install automatically) , you neednot do anything else– macApr 9, 2012 at 9:03
-
@mac i thought Even in the Aptoncd, I have to install dependencies. Thanks so much Apr 9, 2012 at 9:54
-
-
1All dependencies you installed will be in same folder which aptoncd back up. So next time when you use aptoncd (on same OS installed on different machine) the dependencies will be picked up and installed. However in some cases, you might not be able to do 100% backup– macApr 9, 2012 at 10:08
Thats is very simple & easy task
1. create a tar /var/cache/apt/archives
tar cvf archives.tar /var/cache/apt/archives
2. now backup archives.tar
3. Now Install Ubuntu
4. After Installing Ubuntu check for updates & close it
5. now extract archives.tar
at /var/cache/apt/
sudo tar xvf archives.tar /var/cache/apt/
6. i did a reboot ( Dont know may be Optional )
7. Now check for Updates they will 0 MB to Download OR may be some kb's
Verified & Checked on 1 host OS & 5 VM's
A GUI based solution
sudo nautilus
make a tar & then backup
Install Ubuntu & Check for Update & Close it
after that again open terminal & sudo nautilus
open archieve.tar & Drag Drop it As shown in pic
& then again Check for Update , it will be 0 MB
If u want to backup the list of installed packages here are some script for you that will make it easy for you, first to create packages.list there is a python script to do that. create_package_list.py.This script will create a packagelist.txt that will have all the packages you have installed currently.Next there are two shell script, autoaptitude.sh and autoaptget.sh. Keep all of these scripts and the packages.list in backup in Ubuntu-one, Dropbox etc.And whenever you need to get all the previously installed packages run the scripts and your work will be done.