apt-move - move cache of Debian packages into a mirror hierarchy.
apt-move [__-c__ ''conffile''? [__-ft__? command
The apt-move script is used to move a collection of Debian package files into a proper archive hierarchy of the form $LOCALDIR/dists/... where LOCALDIR is specified in the configuration file.
It is intended as a tool to help manage the apt-get(8) file cache, but could be configured to work with any collection of Debian packages.
Additionally, using the sync and mirror commands, you can build your own local mirror of portions of a selected binary and/or source distribution.
Running apt-move periodically will assist in managing the resulting partial mirror by (optionally) removing obsolete packages and creating valid local Packages.gz and Sources.gz files using dpkg-scanpackages(8) and dpkg-scansources(8).
The following commands are accepted by apt-move:
The following options are available from the command line:
Before using apt-move, edit the /etc/apt-move.conf file to match your local setup. Always remember to use the test parameter after any change in your configuration to make sure it will work like you want it to. You may also want to set the DELETE option to no to turn off file deletes until everything else is working successfully.
The following settings are recognized by apt-move (shown here with their defaults):
dpkg-scanpackages(8), dpkg-scansources(8), dpkg(8), apt-get(8)
The mirror command uses a file in the $LOCALDIR/ directory called '.exclude' which contains exclude patterns that are applied against the files to be mirrored. These patterns were created with the following limitation: they must work the same with with grep(1), after any '*' characters are removed. Unless you're careful setting this up, you'll get unexpected results. Run 'apt-move -t mirror' first, to make sure you're getting the results you intended. Another way to verify your exclude file is the use the exclude command for apt-move to print a list of files your are excluding from your mirror. See the sample .exclude file (SAMPLE.exclude) for an example of an .exclude file.
The apt-move mirror and sync commands do not test for available disk space. The current potato (main binary) distribution is over 1Gb in size. Add the sources to that and it can eat up the space on a partition really fast. I would advise you to put your mirror somewhere other than the root partition. Set up your exclude file and run apt-move -t mirror and examine the result.
apt-move may exit with one of the following error messages:
Michael Merten <mikemerten@yahoo.com>
Herbert Xu <herbert@debian.org>
User Submitted Annotations:
If it doesn't move your package, that means it's not listed in the Release file somewhere along the line. That's why you often get Ign: on Release files from 'local' repositories.
So the question dying to be asked here is -- how do you stick it into a Release file? -- PerryLorier
Wouldn't you love to know! Unfortunately, I have so far turned up a blank...
http://lists.debian.org/debian-devel/2003/debian-devel-200309/msg01538.html has a script to create the Relese files.
http://lists.debian.org/debian-user/2002/debian-user-200203/msg04954.html has a simpler description
One page links to apt-move(8):