![]() Marketplace:
|
Maintaining a Distribution ArchiveDownloaded Debian packages are placed into /var/cache/apt/archive. You can have the files moved into a local hierarchy that mirrors a standard Debian distribution hierarchy. Then you can point the /etc/apt/sources.list to this local archive by using the file:// format. To set up a local machine as a local (partial) mirror of the Debian archive, wajig will use the apt-move package.
Edit /etc/apt-move.conf to
set the DIST to match your system (default is stable):
The wajig command move will then move any
packages in your /var/cache/apt/archives into the Debian
mirror being created:
You can actually create a complete mirror with:
These commands place the packages into /mirrors/debian. To
make it available on your web server simply:
The file /etc/apt/sources.list can then be updated to point
to the new archive as the first place to check for packages (place
this lines first in the file):
All of this might happen on your server (called athens in this example) and other machines on your local network can then access the local archive by adding the above line to /etc/apt/sources.list.
If your server is not the most up to date machine (since you may not
want to run the risk of your server becoming unstable), you can
rsync all packages in /var/cache/apt/archives on
other machines to the server and then run the move command on
the server:
|
Marketplace: |
||||||||||||
| Facts: " A language that doesn't have everything is actually easier to program in than some that do. " | ||||||||||||||
Monday 1 December 2008 21:29:18 1228166958