You are not logged in.

#1 2022-07-07 17:12:39

anick
Member
Registered: 2022-07-07
Posts: 10

[Solved] Simplest way to obtain the torrent link to the latest ISO?

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

#2 2022-07-07 17:56:55

progandy
Member
Registered: 2012-05-17
Posts: 5,280

Re: [Solved] Simplest way to obtain the torrent link to the latest ISO?

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

#3 2022-07-07 19:18:23

anick
Member
Registered: 2022-07-07
Posts: 10

Re: [Solved] Simplest way to obtain the torrent link to the latest ISO?

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

#4 2022-07-08 08:25:50

waitnsea
Member
From: France
Registered: 2013-02-10
Posts: 59

Re: [Solved] Simplest way to obtain the torrent link to the latest ISO?

$ 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

Board footer

Powered by FluxBB