Une mirrorlist Custom
Publié : 27 jui 2013, 08:12
ÉDIT DU 03/07/2013 Suite à une mise à jour avec des dépôts non complètement synchronisés j'ai eu quelques problèmes et je soupcçonne la mirrorlist générée avec Custom d'en être en partie la cause. Donc dans le doute je déconseille cette solution et préconise éventuellement; si on sait ce que l'on fait, d'utiliser la solution Pamir viewtopic.php?f=28&t=1814&p=20123&hilit=pamir#p19819
=============================================================
Suite au poste de philm sur le forum anglophone et à la création de la page sur le wiki
http://wiki.manjaro.org/index.php?title=Create_your_own_Custom_Mirrorlist
j'ai décidé de mettre en pratique cette configuration.
Je voulais les Mirrors de France, Netherlands, United_Kingdom, Germany.
Donc pour chaque pays je vais récupérer les références des mirroirs dans différents fichiers list suivis d'un numéro, puis récupérer le tout pour mon fichier /etc/pacman.d/mirrors/Custom puis configurer le fichier /etc/pacman-mirrors.conf et enfin lancer pacman-mirrors -g
Procédure détaillée des commandes passées en root :
On vérifie le résultat de tous les fichiers list* et la sortie de la commande va nous servir à configurer le fichier /etc/pacman.d/mirrors/Custom :
et je recopie le résultat de la commande précédente pour au final avoir :
puis on continue par l'édition de /etc/pacman-mirrors.conf
et je décommente la ligne OnlyCountry= pour au final avoir :
OnlyCountry=Custom
On lance la commande :
On vérifie le résultat :
Ne reste plus qu'à lancer un pacman -Syy
=============================================================
Suite au poste de philm sur le forum anglophone et à la création de la page sur le wiki
http://wiki.manjaro.org/index.php?title=Create_your_own_Custom_Mirrorlist
j'ai décidé de mettre en pratique cette configuration.
Je voulais les Mirrors de France, Netherlands, United_Kingdom, Germany.
Donc pour chaque pays je vais récupérer les références des mirroirs dans différents fichiers list suivis d'un numéro, puis récupérer le tout pour mon fichier /etc/pacman.d/mirrors/Custom puis configurer le fichier /etc/pacman-mirrors.conf et enfin lancer pacman-mirrors -g
Procédure détaillée des commandes passées en root :
# cd /tmp/
# pacman-mirrors -g -c France -o list1
# pacman-mirrors -g -c Netherlands -o list2
# pacman-mirrors -g -c United_Kingdom -o list3
# pacman-mirrors -g -c germany -o list4
On vérifie le résultat de tous les fichiers list* et la sortie de la commande va nous servir à configurer le fichier /etc/pacman.d/mirrors/Custom :
# egrep -h "Server" list*
Server = http://manjarolinux.polymorf.fr/stable/$repo/$arch
Server = http://ftp.nluug.nl/pub/os/Linux/distr/manjaro/stable/$repo/$arch
Server = http://www.mirrorservice.org/sites/repo.manjaro.org/repos/stable/$repo/$arch
Server = http://mirror.catn.com/pub/manjaro/stable/$repo/$arch
Server = http://manjaro.mirrors.uk2.net/stable/$repo/$arch
Server = http://repo.manjaro.org.uk/stable/$repo/$arch
Server = http://ftp.tu-chemnitz.de/pub/linux/manjaro/stable/$repo/$arch
Server = http://ftp.rz.tu-bs.de/pub/mirror/manjaro.org/repos/stable/$repo/$arch
Server = http://ftp.halifax.rwth-aachen.de/manjaro/stable/$repo/$arch
# nano -w /etc/pacman.d/mirrors/Custom
et je recopie le résultat de la commande précédente pour au final avoir :
> cat /etc/pacman.d/mirrors/Custom
##
## Pacman Mirrorlist
##
[Custom]
Server = http://manjarolinux.polymorf.fr/stable/$repo/$arch
Server = http://ftp.nluug.nl/pub/os/Linux/distr/manjaro/stable/$repo/$arch
Server = http://www.mirrorservice.org/sites/repo.manjaro.org/repos/stable/$repo/$arch
Server = http://mirror.catn.com/pub/manjaro/stable/$repo/$arch
Server = http://manjaro.mirrors.uk2.net/stable/$repo/$arch
Server = http://repo.manjaro.org.uk/stable/$repo/$arch
Server = http://ftp.tu-chemnitz.de/pub/linux/manjaro/stable/$repo/$arch
Server = http://ftp.rz.tu-bs.de/pub/mirror/manjaro.org/repos/stable/$repo/$arch
Server = http://ftp.halifax.rwth-aachen.de/manjaro/stable/$repo/$arch
puis on continue par l'édition de /etc/pacman-mirrors.conf
# nano -w /etc/pacman-mirrors.conf
et je décommente la ligne OnlyCountry= pour au final avoir :
OnlyCountry=Custom
On lance la commande :
# pacman-mirrors -g
:: Querying servers, this may take some time...
:: Only country: Custom
-> 0.496 http://manjarolinux.polymorf.fr/stable/$repo/$arch
-> 0.347 http://ftp.nluug.nl/pub/os/Linux/distr/manjaro/stable/$repo/$arch
-> unreachable http://www.mirrorservice.org/sites/repo.manjaro.org/repos/stable/$repo/$arch
-> unreachable http://mirror.catn.com/pub/manjaro/stable/$repo/$arch
-> 0.353 http://manjaro.mirrors.uk2.net/stable/$repo/$arch
-> 0.398 http://repo.manjaro.org.uk/stable/$repo/$arch
-> unreachable http://ftp.tu-chemnitz.de/pub/linux/manjaro/stable/$repo/$arch
-> 0.679 http://ftp.rz.tu-bs.de/pub/mirror/manjaro.org/repos/stable/$repo/$arch
-> 0.699 http://ftp.halifax.rwth-aachen.de/manjaro/stable/$repo/$arch
:: Generated and saved '/etc/pacman.d/mirrorlist' mirrorlist.
On vérifie le résultat :
# egrep -h "Loca|Server" /etc/pacman.d/mirrorlist
## Location: Custom
Server = http://ftp.nluug.nl/pub/os/Linux/distr/manjaro/stable/$repo/$arch
## Location: Custom
Server = http://manjaro.mirrors.uk2.net/stable/$repo/$arch
## Location: Custom
Server = http://repo.manjaro.org.uk/stable/$repo/$arch
## Location: Custom
Server = http://manjarolinux.polymorf.fr/stable/$repo/$arch
## Location: Custom
Server = http://ftp.rz.tu-bs.de/pub/mirror/manjaro.org/repos/stable/$repo/$arch
## Location: Custom
Server = http://ftp.halifax.rwth-aachen.de/manjaro/stable/$repo/$arch
Ne reste plus qu'à lancer un pacman -Syy