spad09
(Shweta P)
1
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
vgaetera
(Vladislav Grigoryev)
2
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
spad09
(Shweta P)
3
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
ilikelinux
(Ilikelinux (l.s.))
4
Mark it as formatted text pls.
system
(system)
Closed
5
This topic was automatically closed 28 days after the last reply. New replies are no longer allowed.