LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Mandriva (https://www.linuxquestions.org/questions/mandriva-30/)
-   -   what does closest mirror mean in: urpmi.addmedia --mirrorlist '$MIRRORLIST' (https://www.linuxquestions.org/questions/mandriva-30/what-does-closest-mirror-mean-in-urpmi-addmedia-mirrorlist-%24mirrorlist-657593/)

secretlydead 07-23-2008 12:37 AM

what does closest mirror mean in: urpmi.addmedia --mirrorlist '$MIRRORLIST'
 
in the man page for urpmi.addmedia, it says:

urpmi.addmedia [options] --distrib --mirrorlist <url>
A mirror list is a special API to describe mirrors available. urpmi will pick the nearest mirror,
and will dynamically handle new mirrors. Example:

urpmi.addmedia --distrib --mirrorlist '$MIRRORLIST'

what do they mean "nearest mirror"?

is this like apt-spy, where the program benchmarks the bit rate of each mirror and then selects the fastest one? or is it something more arbitrary?

Mr. C. 07-23-2008 12:56 AM

I know nothing about your app. Closest mirror in other situations means the mirror with a) fewest router hops, and b) lowest latency. In other words, pick the closest server with the best overall response.

GlennsPref 07-23-2008 07:34 PM

From what I have read it is geographical. The closest mirror.

I suggest setting up the repos with easy-urpmi. http://easyurpmi.zarb.org/

You may follow the instructions, or make your selections more personalised, pick your own mirror, achitecture and what repos you want.

Then copy and paste the lines to a shell/terminal like konsole, and wait for the downloads to finish.

Now you have an updated repository database on your system, so when you type
urpmi kate

urpmi will check your database then goto the site and download the package kate.

I hope this helps you, Glenn

edit> near the top of the http://easyurpmi.zarb.org/page, select "switch to the old interface"

Quote:

Automatic Mandriva Linux Media Setup

If you are using 2008.0 or older version, switch to the old interface.
If you are using smartpm instead of urpmi, switch to smartpm mode.
Now you can set it up without the "auto" list stuff.

personally, I use smart, but I still use the old interface to select repos from where I like.
Sometimes, from here in Aus. Brazil is faster than TW or Japan, because of the daylight-night time network congestion, but that is just my (2c)opinion <edit GW

secretlydead 07-25-2008 09:35 AM

Quote:

Originally Posted by Mr. C. (Post 3223382)
I know nothing about your app. Closest mirror in other situations means the mirror with a) fewest router hops, and b) lowest latency. In other words, pick the closest server with the best overall response.

Mr. C, Thanks for your response.

What apps can I use to test which mirror has the fewest router hops and lowest latency?


(There's a really fantastic application in Debian called apt-spy. It downloads a list of mirrors and then benchmarks them and writes your config file based on that.)

Mr. C. 07-25-2008 03:02 PM

traceroute


All times are GMT -5. The time now is 06:56 AM.