0

How to make a backup of apt archive cache? If I make a backup of the archive cache can I install the applications in the current system to any system, which is running the same OS, using the archive files and without further download? If yes, how to do this installation?

1 Answer 1

1

Yes, you can.

To backup, just copy/paste the .deb files.

To install, either copy them back to the archives on the new system, or use the
dpkg -i *.deb command.

PS: If the two machines are on the same network, use netcat as described here.

PSS: Another tool to use on the LAN is apt-cache-ng.

6
  • will any download made using apt will create a .deb file on archive?
    – Praveen
    Dec 6, 2014 at 10:15
  • what about adding the repositoires in the current system to the new system?
    – Praveen
    Dec 6, 2014 at 10:18
  • will all the libraries in the current system be available in the new system after doing this, or i have to do something for this?
    – Praveen
    Dec 6, 2014 at 10:22
  • 1
    1-Yes. 2-why? The new system has its own repositories. 3. No, the new system will have what you transfer, or install from the repositories. Dec 6, 2014 at 10:50
  • 1
    If packages are only available in PPAs, you either need to add the PPAs, or transfer the archived .deb packages from one system to another. I don't see any other ways. Dec 6, 2014 at 11:52

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .