apt-mirror and multiple distro's?

acidrain

Executive Member
Joined
Jan 7, 2007
Messages
5,975
Whats up chaps,

Just a quick question, I'm currently setting up a local mirror via apt-mirror, and just want to know if it's possible to mirror mutiple distro's. Currently in my /etc/apt/mirror.list file is mirrors for the maverick distro.

Now either I'm just over thinking this but would my mirror only work for machines running maverick meerkat or for any version of ubuntu? If not how would i go about mirroring other versions? Do i just add the repos into the mirror.list?

Is it possible to also mirror completely different distro's like mint etc?

Reason for the mirroring is not all distro's are currently mirrored so thought I would help out and mirror as much as possible

Thanks in advance
:D
 

FacELesS.

Well-Known Member
Joined
May 9, 2005
Messages
185
I am guessing a bit in this reply:
The mirror would work for all machines that have their sources.list edited correctly to use your mirror, although it is recommended that only maverick meerkat systems make use of it (if your mirror is of maverick's packages). Technically speaking any version of a debian based distro that uses dpkg and apt would be able to use the mirror, if setup correctly.

I have worked a little bit with apt-mirror, but I am unsure if it stores the packages mirror according to their specific release (lucid, maverick, gusty, etc.). Maybe go have a look at the path of actual mirror it creates to find that out.

I believe mint is also based on debian and also uses dpkg and apt. If so then you should be able to use apt-mirror to create a mirror for mint.
 

Obelix

Senior Member
Joined
Sep 28, 2003
Messages
961
apt-mirror has issues.

rather get apt-caqcher-ng. its distro agnostic and will cache anything that gets collected by apt. cache size etc are settable in the config.
 

FacELesS.

Well-Known Member
Joined
May 9, 2005
Messages
185
apt-mirror has issues.

rather get apt-caqcher-ng. its distro agnostic and will cache anything that gets collected by apt. cache size etc are settable in the config.

apt-mirror and apt-cacher-ng have different goals.
The first is to create a whole mirror of all the packages upfront. The latter is to act as a proxy between you and the actual mirror, with the ability to cache packages so that those that were previously requested doesn't need to be downloaded again.

I agree that apt-mirror does have some bugs wrt. lock files and it's usability/documentation is a bit lacking. But it works well with a little manual intervention from time to time to get it running.
 
Top