I have two computers: one's online and fully updated, the other's offline. I want to download specific .deb files to deploy them on offline computers manually. For instance I want to install libapache2-mod-php5
.
The problem is that on the online computer, all dependencies are already installed and are not picked up by the reinstall switch. build-essential
is particularly problematic in that regard because it is essentially a metapackage.
On the online:
root@online:~/temp# apt-get install libapache2-mod-php5 --reinstall --yes -s
Reading package lists... Done
Building dependency tree
Reading state information... Done
0 upgraded, 0 newly installed, 1 reinstalled, 0 to remove and 0 not upgraded.
Inst libapache2-mod-php5 [5.4.15-1~lucid+1] (5.4.15-1~lucid+1 PPA for PHP5:10.04/lucid)
Conf libapache2-mod-php5 (5.4.15-1~lucid+1 PPA for PHP5:10.04/lucid)
On the offline (which I made online for argument's sake)
root@offline:~# apt-get --print-uris install libapache2-mod-php5 --reinstall --yes -s
Reading package lists... Done
Building dependency tree
Reading state information... Done
The following extra packages will be installed:
apache2-mpm-prefork apache2-utils apache2.2-bin apache2.2-common libapr1 libaprutil1 libaprutil1-dbd-sqlite3 libaprutil1-ldap php5-common
Suggested packages:
apache2-doc apache2-suexec apache2-suexec-custom php-pear php5-suhosin
The following NEW packages will be installed:
apache2-mpm-prefork apache2-utils apache2.2-bin apache2.2-common libapache2-mod-php5 libapr1 libaprutil1 libaprutil1-dbd-sqlite3 libaprutil1-ldap php5-common
0 upgraded, 10 newly installed, 0 to remove and 96 not upgraded.
Inst libapr1 (1.3.8-1ubuntu0.3 Ubuntu:10.04/lucid-updates)
Inst libaprutil1 (1.3.9+dfsg-3ubuntu0.10.04.1 Ubuntu:10.04/lucid-updates)
Inst libaprutil1-dbd-sqlite3 (1.3.9+dfsg-3ubuntu0.10.04.1 Ubuntu:10.04/lucid-updates)
Inst libaprutil1-ldap (1.3.9+dfsg-3ubuntu0.10.04.1 Ubuntu:10.04/lucid-updates)
Inst apache2.2-bin (2.2.14-5ubuntu8.10 Ubuntu:10.04/lucid-updates)
Inst apache2-utils (2.2.14-5ubuntu8.10 Ubuntu:10.04/lucid-updates)
Inst apache2.2-common (2.2.14-5ubuntu8.10 Ubuntu:10.04/lucid-updates)
Inst apache2-mpm-prefork (2.2.14-5ubuntu8.10 Ubuntu:10.04/lucid-updates)
Inst php5-common (5.3.2-1ubuntu4.19 Ubuntu:10.04/lucid-updates)
Inst libapache2-mod-php5 (5.3.2-1ubuntu4.19 Ubuntu:10.04/lucid-updates)
Conf libapr1 (1.3.8-1ubuntu0.3 Ubuntu:10.04/lucid-updates)
Conf libaprutil1 (1.3.9+dfsg-3ubuntu0.10.04.1 Ubuntu:10.04/lucid-updates)
Conf libaprutil1-dbd-sqlite3 (1.3.9+dfsg-3ubuntu0.10.04.1 Ubuntu:10.04/lucid-updates)
Conf libaprutil1-ldap (1.3.9+dfsg-3ubuntu0.10.04.1 Ubuntu:10.04/lucid-updates)
Conf apache2.2-bin (2.2.14-5ubuntu8.10 Ubuntu:10.04/lucid-updates)
Conf apache2-utils (2.2.14-5ubuntu8.10 Ubuntu:10.04/lucid-updates)
Conf apache2.2-common (2.2.14-5ubuntu8.10 Ubuntu:10.04/lucid-updates)
Conf apache2-mpm-prefork (2.2.14-5ubuntu8.10 Ubuntu:10.04/lucid-updates)
Conf php5-common (5.3.2-1ubuntu4.19 Ubuntu:10.04/lucid-updates)
Conf libapache2-mod-php5 (5.3.2-1ubuntu4.19 Ubuntu:10.04/lucid-updates)
I would like to be able to download all these deb files on the online computer without having to specify them one-by-one.