# Ubuntu – Install package along with all the dependencies offline

package-managementsoftware installation

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?