Diff for "AptMoveHowto/simple"


Differences between revisions 4 and 5
Revision 4 as of 2006-03-07 18:42:38
Size: 1439
Editor: modemcable234
Comment:
Revision 5 as of 2006-03-07 18:54:42
Size: 1507
Editor: modemcable234
Comment:
Deletions are marked like this. Additions are marked like this.
Line 17: Line 17:
Then, using nautilus-cd-burner burn the contents of the /mirrors/debian folder to a disk. 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.
Line 26: Line 26:
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...

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.

cd /mirrors/debian/dists/stable/main/binary-i386
sudo dpkg-scanpackages ../../../../pool/ /dev/null > Packages
sudo mkdir /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)