hadmut
(Hadmut Danisch)
October 20, 2024, 10:52pm
1
Hi,
downloading Fedora manually with browser and mouse is easy, just click the buttons .
But how to download it automatically from a program or script?
E.g. the desktop version is located at
https://download.fedoraproject.org/pub/fedora/linux/releases/40/Workstation/x86_64/iso/Fedora-Workstation-Live-x86_64-40-1.14.iso
which contains two volatile version numbers:
Is there some API or release file which tells these version numbers or the complete URL of all current release files?
Fedora CoreOS does have such files, i.e. https://builds.coreos.fedoraproject.org/streams/stable.json (and next , testing), telling exactly, what’s currently available.
Is there such json file for other Fedora distributions as well?
regards
1 Like
vgaetera
(Vladislav Grigoryev)
October 20, 2024, 10:54pm
2
1 Like
If you understand the naming and numbering of that file it is easy to parse.
Arch is x86_64
Version is 40
build is 1.14
File type is iso
Similar identification is used for almost all rpm packages installed as well.
The latest rsync package for f40 is rsync-3.3.0-1.fc40.x86_64
Arch x86_64
version 3.3.0
build 1
OS version fc40
hadmut
(Hadmut Danisch)
October 28, 2024, 10:32pm
5
https://fedoraproject.org/releases.json
is exactly what I was looking for, although it should contain more details.
1 Like