This question already has an answer here:
Right now I have 2 computers:
- Has connection to the internet and has installed package
- Doesn't have connection to the WEB. On this PC I need to install package
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?