Install package with dependencies offline
Posted
by
ArtemStorozhuk
on Ask Ubuntu
See other posts from Ask Ubuntu
or by ArtemStorozhuk
Published on 2013-06-11T18:57:39Z
Indexed on
2013/06/26
10:28 UTC
Read the original article
Hit count: 352
Right now I have 2 computers:
- Has connection to the internet and has installed package
A. - 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?
Thanks for the help.
© Ask Ubuntu or respective owner