View Full Version : [ubuntu] Create archive, install on non-networked host

November 14th, 2012, 11:17 PM
I want to use apt-get to do the following with (host A, ON internet) and (host B, NO network)

On host A, get some apps, ie: sudo apt-get download xinetd tftpd tftp
Put the .deb files on a thumb drive
On host B, plug in the thumb drive and install the apps.

The apt-get download command puts these files in the current directory:


This is great! I can now put them on my thumb drive and put them on my non-networked hostB.

My question is: What do I type on hostB to install these .deb files?


November 15th, 2012, 05:49 AM
I don't think your going to get the dependencies. Example:


Click on the packages that make up xinetd and you find they have dependencies.


November 15th, 2012, 06:48 AM
You need to setup a trivial repository.

It sounds good to avoid multiple downloads of same files if you have to upgrade multiple computers at the same time i.e. for admins. However for single PC users, these trivial repositories are not much effective because when you need to re-use that local repository, the packages on the actual repositories have been further upgraded and eventually you endup downloading new packages.

November 16th, 2012, 02:13 AM
Answer to your question first -

sudo dpkg -i <package-name>For example - sudo dpkg -i tftp_0.17-18ubuntu2_i386.deb

However, there is a very nice tool - AptOnCD, which does what you want very efficiently and elegantly. It is in the default repositories. From its description -

APTonCD is a complete solution to manage/backup/restore your packages
downloaded via apt-get, aptitude and synaptic. APTonCD also is the
best choice to download an entire repository and/or specific section of
selected mirror, by an pretty GUI.
By default it picks all the (relevant) packages from /var/cache/apt/archives directory (that's the place where the packages are downloaded and stored for future use before being installed). You can also include manually downloaded packages. It then creates one or more cd/dvd iso(s) (as you choose) depending on the size of the selected packages.

These ISOs can then be used to either burn CD/DVDs (which would automatically be recognized as "Software-Sources" by your package manager as soon as inserted), or you can use AptOnCD again (besides other methods) to restore/install all or selected packages directly from the iso - without burning them to cd/dvd.
[The "Restore" button function is somewhat broken in latest Ubuntu versions. You need to manually install "hal" package to make it work.]

The best part is - it takes care of dependencies - just like apt-get does, and it can create a 'meta-package' (selected by default) which can install all the included packages (if supported) in one-click !

Hope it helps.