I ran a local repo for Mandriva for years and then
switched over to Mageia. I now have a full local
repo for both Mageia 1 and Cauldron ( Mageia 2 ).
Three steps for this.
1. What mirror do I use and how do I copy that mirror
to a local directory?
2. How do I install using the local repo
3. How do I set up my local repo as my media source.
#1 I create a cron script file in /etc/cron.daily that
executes the following command:
rsync -aruH --delete
rsync://mirrors.kernel.org/mirrors/mage ... ib/1/i586/ /home/mageia/distrib/1/i586
Do note that I am using mirrors.kernel.org as my source.
I can get upwards of 2MB/s data rates from this source.
I also have built a Custom Command in Webmin such that
I can execute this script file whenever I want. So every
morning when I get up, and if needed, look to see what
got updated at the 4AM cron execution time.
#2 Using the boot.iso file I can install via LAN and
my local repo. When asked in the boot.iso menu
IP is 192.168.1.2
Directory: /distrib/1/i586
ID: mageia
PW: xxxxxx
boot.iso will now load the install program from my
local repo and install using all the latest updates.
#3 If I install using a Live-CD or DVD release when
that is finished I use the following script to set
up the new install with my local repo:
In an su terminal
urpmi.removemedia -a
to remove any preexisting sources
then:
clear
urpmi.addmedia core
ftp://mageia:xxxxx@192.168.1.2//distrib ... re/release with media_info/hdlist.cz
urpmi.addmedia --update core_updates
ftp://mageia:xxxxx@192.168.1.2//distrib ... re/updates with media_info/hdlist.cz
urpmi.addmedia nonfree
ftp://mageia:xxxxx@192.168.1.2//distrib ... ee/release with media_info/hdlist.cz
urpmi.addmedia --update nonfree_updates
ftp://mageia:xxxxx@192.168.1.2//distrib ... ee/updates with media_info/hdlist.cz
urpmi.addmedia tainted
ftp://mageia:xxxxx@192.168.1.2//distrib ... ed/release with media_info/hdlist.cz
urpmi.addmedia --update tainted_updates
ftp://mageia:xxxxx@192.168.1.2//distrib ... ed/updates with media_info/hdlist.cz
clear
urpmi.update -a
sleep 10
exit
exit
(1 space)
this script then adds, and checks, only the above parts of the
repos then closes the terminal. I could add more but for a first
install this works for me.
Do count on about 40GB for each part of the distro. 40GB for
32-bit Mageia, 40GB for 64-bit Mageia. Mandriva was getting
upwards of 50GB for 32-bit Mandriva. Mageia 1, 32-bit in
my local repo is right at 41.4GB today. Mageia 2 32-bit
is at 33.9GB today. These things can easily have upwards
of 30,000 files in them. I figure I need at or more then
200GB of disk space to house Mageia 1 & 2. Figure another
80GB for Cauldron ( Mageia 3 ). My LAN Server ( Mageia 1 )
has a 1TB drive in it. My ISP allows me 250GB of bandwidth
usage per month. I'll typically use about 100GB of that.
Depending on your WAN bandwidth it only kinda makes sense
if you have more then three computers. Or. When I do a test
install I control when the repo updates so therefore I can
do an install, and update, and not have the repo move when
I do that.