1

I want to install some packages without internet connection.

Please suggest the ways to copy already installed packages on "System1" to "System2" (System2 without internet connection).

0

1 Answer 1

-1

Copying files

Take a look at /var/cache/apt/archives. You could copy them to System2 using a USB disk or via ssh (if it has local network access). This might not work if your don't repeat this each time you update System1, because you might miss dependencies which were installed in the meantime. So: Not recommended.

Local network mirror

Also, you could setup a local network apt mirror, which is possibly the best solution.

Create a CD or USB-Disk

For this, try APTonCD, reprepro or AptMedium. All do more or less the same - choose your flavour.

5
  • A network mirror will work only if it System2 is networked, which I think is not the case. APTonCD is obsolete(last development activity for the project was in the year 2007). For apt-medium there has been no development since 2009, other than a spelling correction. Aug 18, 2015 at 12:43
  • @daltonfury42 Objection. He says, System2 is without internet connection. That's not the same as "without network connection". Please read the question more carefully. Even though the mentioned projects are obsolete, it doesn't mean they won't work. In fact, they do just fine. Aug 18, 2015 at 12:57
  • Have you tested them yourselves? Aug 18, 2015 at 13:46
  • Some of them, about 1.5 years ago. Sadly I don't remember which one. I do remember using wiki.ubuntuusers.de/Lokale_Paketquellen/apt-cacher and wiki.ubuntuusers.de/ubumirror, and there are also wiki.ubuntuusers.de/Ubuntu-Mirror and wiki.ubuntuusers.de/apt-mirror. German ubuntu community has usefull articles, if you can read german. Aug 18, 2015 at 14:16
  • Giving it another thought, apt-cacher might be the best solution for small environments. Aug 18, 2015 at 14:17

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