Diff for "AptMoveHowto/simple"


Differences between revisions 8 and 9
Revision 8 as of 2006-03-07 19:07:30
Size: 1564
Editor: modemcable234
Comment:
Revision 9 as of 2006-03-07 19:08:47
Size: 1605
Editor: modemcable234
Comment:
Deletions are marked like this. Additions are marked like this.
Line 16: Line 16:
sudo chmod a+w -R /mirrors/debian/.disk

How can I easily transer all the packages I have downloaded with apt to another box which is not connected to the internet?

sudo apt-get install apt-move

(Or just use synaptic and install the apt-move package) You need to have enabled the universe repository. See AddingRepositoriesHowto

sudo apt-move -d breezy update

Because ubuntu repository structure, not all packages are inserted into the Packages.gz file by apt-move. We must remake the Packages.gz file.

sudo chmod a+w -R /mirrors/debian/
cd /mirrors/debian/dists/dapper/main/binary-i386
sudo rm Packages.gz
sudo dpkg-scanpackages ../../../../pool/ /dev/null > Packages
sudo mkdir /mirrors/debian/.disk
sudo chmod a+w -R /mirrors/debian/.disk
sudo echo "Custom packages" $(hostname) $(date +%y%m%d) > /mirrors/debian/.disk/info

Then, using nautilus-cd-burner burn the contents of the /mirrors/debian folder to a disk. Be sure to show hidden files so that you can copy the .disk file.

Insert that disk into the non-networked computer and add the cdrom as a repository using synaptic or run

sudo apt-cdrom add

from the command line. When installing the packages from this cd, you will be asked if you want to install these packages without authentification. For the sake of simplicity, the GPG keys and the release file are not included on this simple packages cd. The packages will still be installed without any problems if you answer yes.

Note: Dapper will not copy deb packages from the install cd to the /var/cache/apt/archives directory, so we no longer need to clean it...

AptMoveHowto/simple (last edited 2017-09-10 21:50:25 by ckimes)