You are not logged in.

#1 2022-03-16 12:49:10

pepper
Member
Registered: 2017-12-09
Posts: 116

checkupdates-aur (not working anymore) alternative to show aur updates

Hello, around 1 month ago checkupdates-aur stopped working, I used "checkupdates-aur | wc -l" in order to print the number of aur updates periodically in my desktop top-bar. Now I'm looking for an alternative software/script to do the same thing.

Edit: the authour of checkupdates-aur doesn't update the code since 2018

Last edited by pepper (2022-03-16 14:48:42)

Offline

#2 2022-03-16 13:55:43

WorMzy
Forum Moderator
From: Scotland
Registered: 2010-06-16
Posts: 11,787
Website

Re: checkupdates-aur (not working anymore) alternative to show aur updates

This script probably needs fixing for the recent API endpoint changes.

Mod note: moving to AUR Issues.


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

#3 2022-03-17 00:43:21

skunktrader
Member
From: Brisbane, Australia
Registered: 2010-02-14
Posts: 1,538

Re: checkupdates-aur (not working anymore) alternative to show aur updates

1. Install aurutils from the aur
2. Run

pacman -Qm | aur vercmp

to get the same output as checkupdates-aur
3. Remove checkupdates-aur and all the perl* dependencies smile

Last edited by skunktrader (2022-03-17 00:44:03)

Offline

#4 2022-04-29 00:21:58

kolana
Member
Registered: 2021-02-12
Posts: 76

Re: checkupdates-aur (not working anymore) alternative to show aur updates

Hi, what command can replace checkupdates+aur ?

Offline

#5 2022-04-29 00:43:41

jasonwryan
Anarchist
From: .nz
Registered: 2009-05-09
Posts: 30,424
Website

Re: checkupdates-aur (not working anymore) alternative to show aur updates

kolana wrote:

Hi, what command can replace checkupdates+aur ?

Literally the post directly above yours...

skunktrader wrote:

Run

pacman -Qm | aur vercmp

to get the same output as checkupdates-aur


Arch + dwm   •   Mercurial repos  •   Surfraw

Registered Linux User #482438

Offline

#6 2022-04-29 00:57:55

Trilby
Inspector Parrot
Registered: 2011-11-29
Posts: 29,444
Website

Re: checkupdates-aur (not working anymore) alternative to show aur updates

If you really just want the list:

#!/bin/sh

url='https://aur.archlinux.org/rpc?v=5&'

pacman -Qm | sort >| /tmp/local.pkgs
curl -s "${url}type=info$(printf '&arg[]=%s' $(cut -f 1 /tmp/local.pkgs))" \
	| jq -r '.results[]|.Name+" "+.Version' \
	| sort | join /tmp/local.pkgs - \
	| while read pkg a b; do [ "$(vercmp $a $b)" != 0 ] && echo $pkg; done

Note that this includes packages that have a different version in the AUR than is installed - so VCS packages are included in the list.  If you want only packages for which the AUR has *newer* versions than what is installed (which will almost never include VCS updates) then change the "!= 0" in the last line to "== 1",


"UNIX is simple and coherent..." - Dennis Ritchie, "GNU's Not UNIX" -  Richard Stallman

Offline

#7 2022-05-12 17:58:47

kolana
Member
Registered: 2021-02-12
Posts: 76

Re: checkupdates-aur (not working anymore) alternative to show aur updates

jasonwryan wrote:
kolana wrote:

Hi, what command can replace checkupdates+aur ?

Literally the post directly above yours...

skunktrader wrote:

Run

pacman -Qm | aur vercmp

to get the same output as checkupdates-aur


```pacman -Qm | aur vercmp``` shows only aur updates...

Offline

#8 2022-05-12 18:50:38

jasonwryan
Anarchist
From: .nz
Registered: 2009-05-09
Posts: 30,424
Website

Re: checkupdates-aur (not working anymore) alternative to show aur updates

So you run that with checkupdates... Or would you like someone here to write the script for you?


Arch + dwm   •   Mercurial repos  •   Surfraw

Registered Linux User #482438

Offline

Board footer

Powered by FluxBB