You are not logged in.
Pages: 1
pacman.conf has a handy bit of advice for sorting your mirrors but its a frustratingly boring task, so i automated it, bit more cron-jobable now
#!/bin/bash
base=/etc/pacman.d
cd $base
# obviously you can add more to the array!
for dbase in {current,extra}
do
echo "Sorting $dbase mirrors. Please wait..."
sortmirrors.pl <$base/$dbase >$base/$dbase.new
mv $base/$dbase.new $base/$dbase
done
Offline
what / where is sortmirrors.pl and why not use a simple `sort` call?
Offline
Cheers! One thing though people should install the netselect package first otherwise your "current" and "extra" files will be emptied.
Offline
@spider.007...
`sort` only do alphabetic... sortmirrors.pl try to find out the d/l speed and sort them...
mattux
Offline
as i said this expands on the note at the top of pacman.conf!
Offline
#!/bin/bash
base=/etc/pacman.d
cd $base
# obviously you can add more to the array!
for dbase in {current,extra}; do
[ -f ${base}/${dbase}.orig ] || cp ${base}/${dbase}.orig;
echo "Sorting $dbase mirrors. Please wait...";
sortmirrors.pl <${base}/${dbase}.orig >${base}/${dbase};
cat ${base}/${dbase}.orig | egrep [^#] | sed 's/# The Extra Repository/# Just to keep em for emergency/' | sed 's/# CURRENT: Arch Linux core repository/# Just to keep em for emergency/' >> ${base}/${dbase};
done
sortmirror just leaves 3 mirrors.. id prefere something like that just to keep em if pacman cant reach those 3 (or find special pkgs on them)
Offline
I find that the easiest way to make Pacman faster is to just get rid of the iBiblio mirror in the pacman.d/* files... The other mirrors all seem pretty fast, but iBiblio seems to take forever to connect with (though it's fast once you're connected).
Offline
amusingly i just updated this script myself - it is also in a pkg in my repo:
#!/bin/bash
base=/etc/pacman.d
for dbase in {current,extra,testing,unstable} ; do
repotest=`cat /etc/pacman.conf | grep "$dbase"`
repotest=`echo $repotest | grep "#Include"`
if [ -z $repotest ] ; then
echo "Sorting $dbase mirrors. Please wait..."
sortmirrors.pl <$base/$dbase >$base/$dbase.new
cp -f $base/$dbase.new $base/$dbase
rm $base/$dbase.new
fi
done
Mercy, I don't really understand you bit about it "just leaves three mirrors"?
Offline
in the orig file containing the servers you got a list of 10+ per repository (atm at my windoze-box so i cant tell you exact numbers)
the sort mirror gives you the closest* three and throws the others away...
*according to ping-delays
Offline
sortmirros.pl and this job should go to WIKI plz
Offline
sortmirrors.pl is already included in pacman.
I have discovered that all of mans unhappiness derives from only one source, not being able to sit quietly in a room
- Blaise Pascal
Offline
Xentac - yeah but sortmirrors on it's own is crap - it's stupid - why include a script that does half the job when it could do the whole job? it's bizarre.
plus you need netselect - my package provides a "frontend" script for sortmirrors.pl and requires netselect so you get that dep in
(which i guess is why teh script isn't in pacman cos then pacman would depend on netselect, n'est pa?)
Offline
I gave it a try. It works great, for current and extra, then I get
line 8: [: too many arguments
Norm
Offline
For some reason I only have four severs listed in my pacman.d/* files. I am not sire why. Where can I get the original files, or could someone post them for me.
Thanks
Offline
"Be conservative in what you send; be liberal in what you accept." -- Postel's Law
"tacos" -- Cactus' Law
"t̥͍͎̪̪͗a̴̻̩͈͚ͨc̠o̩̙͈ͫͅs͙͎̙͊ ͔͇̫̜t͎̳̀a̜̞̗ͩc̗͍͚o̲̯̿s̖̣̤̙͌ ̖̜̈ț̰̫͓ạ̪͖̳c̲͎͕̰̯̃̈o͉ͅs̪ͪ ̜̻̖̜͕" -- -̖͚̫̙̓-̺̠͇ͤ̃ ̜̪̜ͯZ͔̗̭̞ͪA̝͈̙͖̩L͉̠̺͓G̙̞̦͖O̳̗͍
Offline
From what I've seen, US (and probably Canadian) users should be able to use any mirror other than the ibiblio one without a problem. The ibiblio mirror has relatively low bandwidth and some irritating lag issues.
(This isn't really surprising, since it's the default mirror for the Extra repo.)
Offline
Pages: 1