You are not logged in.
Is there a better (simpler) way to get the torrent link to the latest Arch Linux ISO file, than to parse the output of "curl https://archlinux.org/download/"?
(I'm talking about https://archlinux.org/releng/releases/2 … 1/torrent/)
I mean, is there something like https://archlinux.org/releng/releases/LATEST/torrent/ I don't know about?
Last edited by anick (2022-07-07 19:22:47)
Offline
You can parse the newsfeed https://archlinux.org/feeds/releases/
Some torrent clients like qbittorrent can automatically download files from an rss feed.
Last edited by progandy (2022-07-07 17:57:32)
| alias CUTF='LANG=en_XX.UTF-8@POSIX ' |
Offline
That's a better way, thank you.
print-latest-arch-iso-torrent-url.sh:
#!/usr/bin/env sh
# depends on curl, xmlstarlet
curl --silent 'https://archlinux.org/feeds/releases/' |
xml sel -t -v '//channel/item[1]/link'
printf '%s\n' 'torrent'
outputs:
https://archlinux.org/releng/releases/2022.07.01/torrent
But I still think it would be nicer, to have something like https://archlinux.org/releng/releases/LATEST/torrent/. This wouldn't require curl and parsing its output.
Last edited by anick (2022-07-07 19:23:57)
Offline
$ transmission-qt "$(curl --silent '[url]https://archlinux.org/feeds/releases/[/url]' | xml sel -t -v '//channel/item[1]/link' ; printf '%s\n' 'torrent')"
Last edited by waitnsea (2022-07-08 08:27:44)
Offline