https://github.com/mbachry/fedora-best-mirror
Find best Fedora mirror by running actual speed checks.
https://github.com/mbachry/fedora-best-mirror
fedora mirror speedtest
Last synced: about 1 month ago
JSON representation
Find best Fedora mirror by running actual speed checks.
- Host: GitHub
- URL: https://github.com/mbachry/fedora-best-mirror
- Owner: mbachry
- License: mit
- Created: 2024-12-07T17:42:29.000Z (5 months ago)
- Default Branch: main
- Last Pushed: 2024-12-07T17:56:16.000Z (5 months ago)
- Last Synced: 2025-02-02T14:49:03.817Z (3 months ago)
- Topics: fedora, mirror, speedtest
- Language: Python
- Homepage:
- Size: 4.88 KB
- Stars: 1
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# fedora-best-mirror
Fedora mirrorlist API used by DNF returns mirrors sorted by closest
proximity from your geoip location. Often times, however, it's better
to pick a mirror that's farther away, but with better internet
connection to your ISP. The `fedora-best-mirror` script lets you run
speed tests again all servers from the mirror list.## Install
Install poetry:
```
dnf install poetry
```Install dependencies:
```
poetry install
```## Usage
Take your favorite general speed test to make sure your internet
speeds are currently as advertised by the ISP,
eg. [fast.com](https://fast.com). Make sure there are no active
downloads running or anything that may skew the tests.Run the script with the defaults:
```
poetry run fedora-best-mirror
```By default the script does 5 second tests of all mirrors and prints
results sorted by average and peak speed. Pick the best mirror and
replace metalinks with `baseurl=` in `/etc/yum.repos.d/fedora.repo`,
`/etc/yum.repos.d/fedora-updates.repo`, etc.Pass `--download-timeout` param to change test duration from 5
seconds. Use longer timeouts for more reliable averages.Use `--max-mirrors` to limit how many mirrors are checked,
eg. `--max-mirrors=5` to test only 5 nearest mirrors.