You are not logged in.

#1 2009-01-06 15:55:28

Cew27
Member
Registered: 2008-06-16
Posts: 197

[solved] how to change my servers to faster ones

hey guys can anyone tell me how to change my repo servers to faster ones (based in the uk) i am currently with mirror service.org i think and only getting 80kbps

Last edited by Cew27 (2009-01-08 19:10:06)

Offline

#2 2009-01-06 16:05:58

Mr Green
Forum Fellow
From: U.K.
Registered: 2003-12-21
Posts: 5,896
Website

Re: [solved] how to change my servers to faster ones

try using rankmirrors

 rankmirrors 
Usage: rankmirrors [options] MIRRORFILE | URL

Ranks pacman mirrors by their connection and opening speed. Pacman mirror
files are located in /etc/pacman.d/. It can also rank one mirror if the URL is
provided.

Options:
  --version      show program's version number and exit
  -h, --help     show this help message and exit
  -n NUM         number of servers to output, 0 for all
  -t, --times    only output mirrors and their response times
  -u, --url      test a specific url
  -v, --verbose  be verbose in ouptut

Mr Green

Offline

#3 2009-01-06 16:18:52

Cew27
Member
Registered: 2008-06-16
Posts: 197

Re: [solved] how to change my servers to faster ones

how does this work?

Offline

#4 2009-01-06 16:50:51

Xyne
Administrator/PM
Registered: 2008-08-03
Posts: 6,963
Website

Re: [solved] how to change my servers to faster ones

To change your mirror, open the file /etc/pacman.d/mirrorlist, uncomment a mirror near you, and move it to the top of the file.

rankmirrors will take a list of mirrors and arrange them in order of speed. If you want to find the 5 fastest mirrors where you are, pass it your mirrorlist with servers near you uncommented along with the "-n 5" option and redirect the output to a file, e.g.

cd /etc/pacman.d
cp mirrorlist mirrorlist.bak
rankmirrors -n 5 mirrorlist >mirrorlist

That will save a backup of your current mirrorlist to /etc/pacman.d/mirrorlist.bak and rank your mirrorlist file.

If you want to really increase pacman's speed, take a look at powerpill and reflector (the link is in my sig).

Last edited by Xyne (2009-01-06 16:51:34)


My Arch Linux StuffForum EtiquetteCommunity Ethos - Arch is not for everyone

Offline

#5 2009-01-06 18:01:09

Cew27
Member
Registered: 2008-06-16
Posts: 197

Re: [solved] how to change my servers to faster ones

can powerpill work with yaourt?

Offline

#6 2009-01-06 18:07:12

rson451
Member
From: Annapolis, MD USA
Registered: 2007-04-15
Posts: 1,233
Website

Re: [solved] how to change my servers to faster ones

The signature right above what you just typed wrote:

works with other wrappers

The page linked beside the text from the above quote wrote:

Using Powerpill Inside Yaourt and Other Wrappers

If the wrapper ha...

Last edited by rson451 (2009-01-06 18:09:06)


archlinux - please read this and this — twice — then ask questions.
--
http://rsontech.net | http://github.com/rson

Offline

#7 2009-01-06 19:04:11

Zariel
Member
Registered: 2008-10-07
Posts: 446

Re: [solved] how to change my servers to faster ones

i find uk2 mirror to be the best, can pull 1000kpbs off it

Offline

#8 2009-01-06 19:08:48

skottish
Forum Fellow
From: Here
Registered: 2006-06-16
Posts: 7,942

Re: [solved] how to change my servers to faster ones

+1 for powerpill. I have only the three fastest servers that I could find, and powerpill makes it so much nicer.

Offline

#9 2009-01-07 23:12:32

Cew27
Member
Registered: 2008-06-16
Posts: 197

Re: [solved] how to change my servers to faster ones

i tried rankmirror, it showerd nothing in my mirrorlist exept it was generatored by rank mirror
also i forgot i posted this sorry for the cross post

Offline

#10 2009-01-07 23:35:53

Xyne
Administrator/PM
Registered: 2008-08-03
Posts: 6,963
Website

Re: [solved] how to change my servers to faster ones

Ok, this is as clearly as I can explain it, I think. This should get you the best possible download speed.

Run these commands to install powerpill:

echo -e "\n[xyne-any]\nServer = http://xyne.archlinux.ca/repos/any/\n" >>/etc/pacman.conf
pacman -Sy powerpill

Open /etc/pacman.d/mirrorlist and uncomment all of the mirrors in your hemisphere, then use powerpill as you would use pacman:

powerpill -Syu
powerpill -S pkgA

etc.

To test your bandwidth, try downloading something like base or openoffice:

powerpill -Sw --cachedir /tmp base
powerpill -Sw --cachedir /tmp openoffice-base

The -w flag is "download only", so it won't install the packages and --cachedir is just an alternative cache to guarantee that the packages are downloaded even if you already have them in your cache.





If you're using Yaourt, open your yaourtrc file (either /etc/yaourtrc or ~/.yaourtrc), uncomment the PacmanBin line and change it to

PacmanBin /usr/bin/powerpill

If yaourt or some other wrapper complains about the output format of powerpill, generate the configuration file with

powerpill --gen-conf

then open "~/.config/powerpill/powerpill.conf" in a text editor and change the following section

# Additional command line arguments that you always wish to include
# when powerpill is invoked, such as "--nomessages" when wrapping
# powerpill with another script.
# Default: ''
ADDITIONAL_POWERPILL_ARGUMENTS = ''

to

# Additional command line arguments that you always wish to include
# when powerpill is invoked, such as "--nomessages" when wrapping
# powerpill with another script.
# Default: ''
ADDITIONAL_POWERPILL_ARGUMENTS = '--nomessages'

Last edited by Xyne (2009-03-07 00:14:04)


My Arch Linux StuffForum EtiquetteCommunity Ethos - Arch is not for everyone

Offline

#11 2009-01-08 08:17:03

Cew27
Member
Registered: 2008-06-16
Posts: 197

Re: [solved] how to change my servers to faster ones

thanks ill try this tonight wink

Offline

#12 2009-01-08 19:02:54

Cew27
Member
Registered: 2008-06-16
Posts: 197

Re: [solved] how to change my servers to faster ones

please dont listen to me. im an idiot. i was editing the  mirrorlist.pacorig for some strange reason. how silly do i feel

Offline

#13 2009-01-08 19:08:10

Mr Green
Forum Fellow
From: U.K.
Registered: 2003-12-21
Posts: 5,896
Website

Re: [solved] how to change my servers to faster ones

Please change your thread title to Solved smile


Mr Green

Offline

#14 2009-02-06 01:36:26

otacon
Member
From: USA
Registered: 2008-06-29
Posts: 170
Website

Re: [solved] how to change my servers to faster ones

I can't get powerpill to install
I get
[otacon@desktop ~]$ sudo echo -e "\n[xyne-any]\nServer = http://xyne.archlinux.ca/repos/any/n" >>/etc/pacman.conf
bash: /etc/pacman.conf: Permission denied
[otacon@desktop ~]$


http://remcycle.net
Cheap Web Hosting and Even Cheaper Domain Registration

Offline

#15 2009-02-06 01:46:35

Misfit138
Misfit Emeritus
From: USA
Registered: 2006-11-27
Posts: 4,189

Re: [solved] how to change my servers to faster ones

otacon wrote:

I can't get powerpill to install
I get
[otacon@desktop ~]$ sudo echo -e "\n[xyne-any]\nServer = http://xyne.archlinux.ca/repos/any/n" >>/etc/pacman.conf
bash: /etc/pacman.conf: Permission denied
[otacon@desktop ~]$

Please start a new thread for this issue. Thanks.

Offline

Board footer

Powered by FluxBB