Ask Ubuntu is a question and answer site for Ubuntu users and developers. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

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?

share|improve this question
up vote 3 down vote accepted

Check this AptOnCD (Install Aptoncdaptoncd).

sudo apt-get install aptoncd

share|improve this answer
Hey AptOnCD is quite very old. Is the project abandoned?? – Ravi Apr 9 '12 at 9:10
Not very sure, but it works great if you are playing with same OS (freshly installed) – mac Apr 9 '12 at 9:16
Ok thanks for info... – Ravi Apr 9 '12 at 9:19
Check this - – mac Apr 9 '12 at 10:05

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!

share|improve this answer
What if I use AptOnCD?? Do i have to install dependencies then?? – Ravi Apr 9 '12 at 9:01
If you use aptoncd(click on the link - it will install automatically) , you neednot do anything else – mac Apr 9 '12 at 9:03
Thank you guys! – Ravi Apr 9 '12 at 9:09
@mac i thought Even in the Aptoncd, I have to install dependencies. Thanks so much – Prasad RD Apr 9 '12 at 9:54
All 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 – mac Apr 9 '12 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

enter image description here

          make a tar & then backup

          Install Ubuntu & Check for Update & Close it

enter image description here

          after that again open terminal & sudo nautilus

enter image description here

          open archieve.tar & Drag Drop it As shown in pic

          & then again Check for Update , it will be 0 MB

Update Alternative for Ubuntu

share|improve this answer
Thanks for giving a another way to backup... – Ravi Apr 10 '12 at 3:33

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. script will create a packagelist.txt that will have all the packages you have installed currently.Next there are two shell script, and 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.

share|improve this answer

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.