--print-uris

apt-get --print-uris --yes

To get the URIs (links) of all the files needed to install a package (i.e. ExamplePackage), use:

apt-get --print-uris --yes install ExamplePackage > packageuri.htm

You can also give more than one package name.

myurilist.htm can be stored in a USB flash drive, to be used in a computer with Internet connection to click in the URIS (links) and download the packages.

You can use grep and cut to extract the URIs from the output

apt-get --print-uris --yes install ExamplePackage | grep ^\' | cut -d\' -f2 > packageuri.htm

apt-get --print-uris update > myupdateurilist.htm

When you have downloaded the new index, store it in /var/lib/apt/lists (after save a backup copy of it in /var/lib/apt/lists.old ).

apt-get --fix-broken > mybrokenpackagesurilist.htm

Recommended

apt-get dist-upgrade > mydisturilist.htm

Dowloading

You can click in the links in the htm file or download the files using Wget.

wget --input-file myurilist.htm 

Installation in the local machine

You can install the dowloaded packages manually (clicking in the files in Nautilus, that employs Gdebi) or automatically in a terminal:

 apt-get -o dir::cache::archives="/disc" dist-upgrade

See also


CategoryOffline CategoryPackageManagement

AptGet/Offline/PrintUris (last edited 2009-08-03 02:45:37 by c-68-80-200-223)