You are not logged in.

#1 2010-09-30 18:23:26

Mr. Alex
Member
Registered: 2010-08-26
Posts: 623

How to use reflector to sort by country?

I want to download all USA mirrors. I try:

reflector -c USA

or

reflector -c usa

or another countries but every time it gives me only two URLs and that's it. No matter what country I type in. What am I doing wrong?

Offline

#2 2010-09-30 18:31:38

karol
Archivist
Registered: 2009-05-06
Posts: 25,440

Re: How to use reflector to sort by country?

How about

reflector --country %own% -o <outputfile>

I got seven mirrors.

Offline

#3 2010-10-01 12:03:08

Mr. Alex
Member
Registered: 2010-08-26
Posts: 623

Re: How to use reflector to sort by country?

What is "%own%"? What should I type in there?

Offline

#4 2010-10-01 12:15:05

karol
Archivist
Registered: 2009-05-06
Posts: 25,440

Re: How to use reflector to sort by country?

Mr. Alex wrote:

What is "%own%"? What should I type in there?

You should read the manual :-)
Just type it as it is, but provide a valid output filename:

reflector --country %own% -o stupid_mirrors

works here

[karol@black ~]$ reflector --country %own% -o stupid_mirrors
[karol@black ~]$ cat stupid_mirrors 
# 2010-10-01 14:22 
# generated by reflector
Server = ftp://mirrors.kernel.org/archlinux/$repo/os/$arch
Server = http://mirrors.kernel.org/archlinux/$repo/os/$arch
Server = ftp://ftp.piotrkosoft.net/pub/mirrors/ftp.archlinux.org/$repo/os/$arch
Server = http://piotrkosoft.net/pub/mirrors/ftp.archlinux.org/$repo/os/$arch
Server = ftp://ftp.pwsz.elblag.pl/pub/linux/distributions/archlinux/$repo/os/$arch
Server = http://ftp.pwsz.elblag.pl/pub/linux/distributions/archlinux/$repo/os/$arch
Server = http://unix.net.pl/archlinux.org/$repo/os/$arch

Offline

Board footer

Powered by FluxBB