Sunday, March 6, 2016

software installation - Install package along with all the dependencies offline

Right now I have 2 computers:



  1. Has connection to the internet and has installed package A.

  2. Doesn't have connection to the WEB. On this PC I need to install package A.


I decided to download all needed packages using first PC and transfer them to the second PC via USB. I have searched how to get all needed packages for some deb installation and here's what I've found.


But when I run:


apt-get --print-uris --yes install A | grep ^\' | cut -d\' -f2 > downloads.list

on first PC I got empty file because this package is already installed there (and I don't want to uninstall it).


Also package A is very complicated and depends on package B which depends on package C and package C is not installed on the second PC.


So how can I download all needed packages? Or is there any other way of installing it?

No comments:

Post a Comment

11.10 - Can't boot from USB after installing Ubuntu

I bought a Samsung series 5 notebook and a very strange thing happened: I installed Ubuntu 11.10 from a usb pen drive but when I restarted (...