3

I would like to install a program on another Ubuntu machine that does not have internet access. Is there a place that i can download Debian files, or can i copy some files out of my file system or what. I can't figure anything out! thanks

2

1 Answer 1

4

You can either find the links to individual packages, following the instructions given in this answer to a similar question, which, in summary, are (credits to @enzotib):

apt-get --print-uris install <package names>

it will give web addresses of packages to download. In this case, no way to get the url of already installed packages.

To extract the urls you can do

apt-get --print-uris install <package names> |
awk -F\' '/http/ { print $2 }'

and to directly download the packages:

wget $(apt-get --print-uris install <package names> |
awk -F\' '/http/ { print $2 }')

However, I use keryx following a procedure I describe in another question. I prefer this method because it detects what packages have an update, and lets me install additional packages taking care at the same time of dependencies.

For simply updating your system, you can find other options described elsewhere in this website and others.

0

Not the answer you're looking for? Browse other questions tagged .