You are not logged in.

#1 2007-08-09 07:56:17

morellik
Member
From: Italy
Registered: 2007-04-05
Posts: 43

pacman: a country request in pacman.conf

Dear all,

first, excuse me for my bad english.

Setting the nearest mirror in all /etc/pacman.d files should be tedious especially if I am a men that go around the world (this is not my case).
Is it possible to add a new feature in pacman.conf to enable the user to set the mirror country without touch the
/etc/pacman.d files?
Something like COUNTRY=IT or MIRROR_COUNTRY=IT

So, if I'll go in another country or only to test other mirrors, I have only to change a variable.

Thanks for the attention
morellik

Offline

#2 2007-08-09 08:39:17

wuischke
Member
From: Suisse Romande
Registered: 2007-01-06
Posts: 630

Re: pacman: a country request in pacman.conf

I really like the idea, would be very handy and a lot faster than adjusting things manually.

I would like an extension to the rankmirrors script as well, where I can specify the countries where mirrors are allowed from. (e.g. Czech republic, Germany and Belgium for me)

Offline

#3 2007-08-09 09:13:50

shining
Pacman Developer
Registered: 2006-05-10
Posts: 2,043

Re: pacman: a country request in pacman.conf

I think the main problem is that there are several mirror lists to edit, while one is enough.
There is a way in pacman 3.1 to have just one list, so it'll be much easier to edit it manually.
Just move the mirrors from your country at the top in one file, and you're done.


pacman roulette : pacman -S $(pacman -Slq | LANG=C sort -R | head -n $((RANDOM % 10)))

Offline

Board footer

Powered by FluxBB