Diff for "AptMoveHowto/simple"


Differences between revisions 8 and 10 (spanning 2 versions)
Revision 8 as of 2006-03-07 19:07:30
Size: 1564
Editor: modemcable234
Comment:
Revision 10 as of 2006-03-07 19:15:05
Size: 1712
Editor: modemcable234
Comment:
Deletions are marked like this. Additions are marked like this.
Line 12: Line 12:
cd /mirrors/debian/dists/dapper/main/binary-i386 cd /mirrors/debian/dists/breezy/main/binary-i386
Line 16: Line 16:
sudo chmod a+w -R /mirrors/debian/.disk
Line 28: Line 29:
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... 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...  Also /mirrors/debian/dists/breezy/main/binary-i386 will be /mirrors/debian/dists/dapper/main/binary-i386.

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/breezy/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... Also /mirrors/debian/dists/breezy/main/binary-i386 will be /mirrors/debian/dists/dapper/main/binary-i386.

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