Download packages with all dependencies for offline installation

Download packages with all dependencies for offline installation


First generate package download list using the following command:

$sudo apt-get install package-name  --allow-unauthenticated -y --print-uris | grep -o http.* | tr "" " " > download-list
or
$apt-get --allow-unauthenticated -y install --print-uris package-name | cut -d -f2 | grep http:// > download-list
where replace package-name with name of the package

Now to download the packages run the following command

$wget -c -i ./download-list

To generate package list for updating system use the following command:

$sudo apt-get update
$sudo apt-get upgrade --allow-unauthenticated -y --print-uris | grep -o http.* | tr "" " " > download-list


To install the downloaded packages from that folder run "sudo dpkg -i *.deb" from that directory.

download file now

Unknown

About Unknown

Author Description here.. Nulla sagittis convallis. Curabitur consequat. Quisque metus enim, venenatis fermentum, mollis in, porta et, nibh. Duis vulputate elit in elit. Mauris dictum libero id justo.

Subscribe to this Blog via Email :