APT-GET -D

Ulf Rompe Ulf.Rompe at icem.com
Thu Mar 6 09:46:15 UTC 2008


Am Donnerstag, den 06.03.2008, 15:46 +0700 schrieb Gunawan:
> I would like to know if I use
> sudo apt-get -d mc (for example)
> I think (from manual) it will only download the binary in to my PC.

You're right.

> Where is the downloaded files location?

/var/cache/apt/archives/

> Can I use the downloaded file to install on other PC (off line?) and
> how?

You could simply transfer the package to some directory on the other
computer and install it using "dpkg -i FILENAME". Make sure you also
copy all dependencies of the package.

Another way would be to transfer the whole /var/cache/apt
and /var/lib/apt directories to the exact same location on the other
computer and use apt-get there. This would make it possible to run
"apt-get dist-upgrade" or the update-manager, for example.

If you happen to do things like this on a regular basis, maybe you
should have a look at apt-zip:

Package: apt-zip
 Update a non-networked computer using apt and removable media
 These scripts simplify the process of using dselect and apt on a
 non-networked Debian box, using removable media like ZIP floppies and
 USB keys.
 One generates a `fetch' script (supporting backends such as wget and
 lftp, in a modular, extensible way) to be run on a host with better
 connectivity, check space constraints of your removable media, and
 then install the package on your Debian box.


[x] ulf 

-- 
Der Mensch ist immer noch der beste Computer. (John F. Kennedy)





More information about the ubuntu-users mailing list