PDA

View Full Version : [all variants] Copying /var/cache/apt/archives to save bandwidth



scaramanzia
August 15th, 2009, 04:42 PM
Hello all.
I'm needing to re-install Ubuntu because a partition layout problem. But I'm very short of bandwidth, so I don't want to download all packages again.
I was guessing if I can backup my /var/cache/apt/archives directory to copy it to the next installation, so, apt doesn't need to download it all again, but I'm not sure if this is going to work right this way.
Don't you know about any workaround I need to do before?

SoftwareExplorer
August 15th, 2009, 05:08 PM
I've done that and it seemed to work, though sometimes somewhat randomly it will say the packages aren't authenticated (because it didn't download them or something) but it should work.

hackerb9
September 13th, 2011, 04:22 PM
Hello all.
I'm very short of bandwidth, so I don't want to download all packages again.
I was guessing if I can backup my /var/cache/apt/archives directory to copy it to the next installation, so, apt doesn't need to download it all again

Yes, copying /var/cache/apt files by hand works. An easier, better solution is APTonCD: http://aptoncd.sourceforge.net/. APTonCD creates disks which are "APT-suitable", meaning they can be used as source repositories. It also creates a single meta package which, if you install it, installs all of the software you had on your previous computer. Very handy.

BTW: Although this thread is old, I'm replying to this because it is Google's top hit for "Copying /var/cache/apt".