Take the 2-minute tour ×
Ask Ubuntu is a question and answer site for Ubuntu users and developers. It's 100% free, no registration required.

This question already has an answer here:

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

share|improve this question

marked as duplicate by Luis Alvarado Apr 12 '13 at 4:01

This question has been asked before and already has an answer. If those answers do not fully address your question, please ask a new question.

    
Also, you may want to view this community wiki article. –  DaimyoKirby Apr 12 '13 at 0:06
    
this is a recent website (i think) and it has a lot of .deb packages on it –  ubuntu_blenderer Jul 18 '13 at 21:24

1 Answer 1

up vote 4 down vote accepted

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.

share|improve this answer
    
thanks carnendil! –  ubuntu_blenderer Apr 12 '13 at 1:59

Not the answer you're looking for? Browse other questions tagged or ask your own question.