You are not logged in.
For example - https://www.archlinux.org/packages/comm … 6_64/nemo/
It's not stored in the sync databases downloaded to the computer during update. Is it stored somewhere on the web? can it be retrieved?
Thanks.
UP: Sorry, looks like I've chosen a wrong section. Please move the topic to the appropriate one.
Last edited by zivziv (2016-05-16 15:03:34)
Offline
Is what stored? What are you asking about?
Moving to NC.
Sakura:-
Mobo: MSI MAG X570S TORPEDO MAX // Processor: AMD Ryzen 9 5950X @4.9GHz // GFX: AMD Radeon RX 5700 XT // RAM: 32GB (4x 8GB) Corsair DDR4 (@ 3000MHz) // Storage: 1x 3TB HDD, 6x 1TB SSD, 2x 120GB SSD, 1x 275GB M2 SSD
Making lemonade from lemons since 2015.
Offline
Of course it's stored somewhere on the web. You provided a link to precisely where it is stored:
#!/bin/bash
repo=$1
arch=x86_64
pkg=$2
curl https://www.archlinux.org/packages/$repo/$arch/$pkg/ 2>/dev/null | \
grep -q 'class="flagged"' && echo out of date
"UNIX is simple and coherent..." - Dennis Ritchie, "GNU's Not UNIX" - Richard Stallman
Offline
Of course it's stored somewhere on the web. You provided a link to precisely where it is stored:
Thanks, this can do the trick.
But I was looking for something similar to AUR RPC (which provides results in json format), rather than parsing an html... if such interface exists for official packages.
Offline
Eh ... you want a single binary piece of information formated as json? Ok:
curl https://www.archlinux.org/packages/$repo/$arch/$pkg/ 2>/dev/null | \
grep -q 'class="flagged"' && echo '{"flagged":"true"}' || \
echo '{"flagged":"false"}'
I get the feeling an XY problem is about to be revealed.
"UNIX is simple and coherent..." - Dennis Ritchie, "GNU's Not UNIX" - Richard Stallman
Offline
Ok, what I want to do is to add support for the packages' out-of-date status into pacman/AUR helper app I'm working on.
For AUR packages, we already have this support from the AUR RPC.
For official packages, the only way to retrieve this info found so far is to parse an html page containing package info. This is not efficient in terms of traffic used, processing time, etc, so I'm wondering if there's any other way to get this info, e.g. similar to AUR RPC.
Hope this helps.
Offline
Ok, what I want to do is to add support for the packages' out-of-date status into pacman/AUR helper app I'm working on.
For AUR packages, we already have this support from the AUR RPC.
For official packages, the only way to retrieve this info found so far is to parse an html page containing package info. This is not efficient in terms of traffic used, processing time, etc, so I'm wondering if there's any other way to get this info, e.g. similar to AUR RPC.
Hope this helps.
Evil #archlinux@libera.chat channel op and general support dude.
. files on github, Screenshots, Random pics and the rest
Offline
Thanks, that's exactly what I've been looking for!
Offline