Fedora Mirror isssue

I have a script running periodically, that monitors this website to find the latest Fedora release.
https://download.fedoraproject.org/pub/fedora/linux/releases/

I just use a wget command like this - “wget -qO index.html $URL”
The problem is that this url fails to return any mirrors about 30-40% of the time.

Is it better to use a specific mirror instead? Please let me know.

1 Like
curl "https://getfedora.org/releases.json" | jq ".[0].version"

. /etc/os-release; curl "https://getfedora.org/releases.json" \
| jq ".[] | select(.version==\"${VERSION_ID}\" \
and .arch==\"$(uname -m)\" and .variant==\"${VARIANT_ID^}\")"
3 Likes

Thank you so much!! That was super helpful. I wanted to avoid the Beta version. So I will be using this

curl "https://getfedora.org/releases.json" | jq '.[] | select(.version|test("^[0-9]+$")) | .version' | sort -rn | uniq | head -n 1 | tr -d '"'

Thanks again!!

1 Like

Mark it as formatted text pls.

This topic was automatically closed 28 days after the last reply. New replies are no longer allowed.