1

How can I download package A which depends on A-1 and A-2, which depend on A-1-1, A-1-2, A-2-1, A-2-2, A-2-3 etc.

So, that when I entered in a new computer without internet access, if I want to install package A I only need to do dpkg -i *.deb without any complain about the dependences issues.

Please note that I need download all the dependences, the best approach by far is the accepted answer!

1 Answers1

2

I would start with a vanilla installation USB (for the distro on the new computer), boot from that, ensure /var/apt/cache is empty, then sudo apt-get install Package-A, and copy all from /var/apt/cache to take with me.

This doesn't absolutely guarantee success still, as the install medium is not the same as the new install; but it is likely to work.

You could then install on a fresh HDD with internet disconnected, whilst still at home, & try a dry run, if it really matters!