You are not logged in.

#1 2023-03-03 02:45:27

barnd3
Member
Registered: 2023-02-07
Posts: 106

Conky Updates AUR

how can i search for aur updates with conky?
Unfortunately, "checkupdates-aur" does not work

Offline

#2 2023-03-03 03:58:15

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

Re: Conky Updates AUR

I have no idea what "checkupdates-aur" is, but your question has nothing to do with conky.  You use whatever tool you want to check for aur updates, and display that number (or list of packages) in conky.

You can just check with the RPC for available updates:

#!/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)" -lt 0 ] && echo $pkg;
	done

Last edited by Trilby (2023-03-03 04:08:25)


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

Offline

#3 2023-03-03 05:51:45

barnd3
Member
Registered: 2023-02-07
Posts: 106

Re: Conky Updates AUR

"checkupdates-aur" is a tool to check for aur updates.

In conky I use this to su for arch updates and display them

${execpi 3600 checkupdates | awk 'END { print (NR == 0 ? "System up to date" : NR " package" (NR > 1 ? "s" : "")); }'}

Now I use the same line to check for aur updates via the "checkupdates-aur" tool doesn't work.
Now my question is, is there another way to check for updates with conky?

Offline

#4 2023-03-03 08:51:51

V1del
Forum Moderator
Registered: 2012-10-16
Posts: 21,425

Re: Conky Updates AUR

Why do you use the same line? Did you actually look at the checkupdates-aur output to see whether the same line would work?

Offline

#5 2023-03-03 09:55:05

barnd3
Member
Registered: 2023-02-07
Posts: 106

Re: Conky Updates AUR

That's what I have in the script.

${execpi 3600 checkupdates | awk 'END { print (NR == 0 ? "System up to date" : NR " package" (NR > 1 ? "s" : "")); }'}
${execpi 3600 checkupdates-aur | awk 'END { print (NR == 0 ? "System up to date" : NR " package" (NR > 1 ? "s" : "")); }'}

I think I read that "checkupdates-aur" shouldn't work anymore.
I checked that with an update...

Offline

#6 2023-03-03 12:55:17

seth
Member
Registered: 2012-09-03
Posts: 49,981

Re: Conky Updates AUR

V1del wrote:

Did you actually look at the checkupdates-aur output

Offline

#7 2023-03-03 14:00:31

barnd3
Member
Registered: 2023-02-07
Posts: 106

Re: Conky Updates AUR

How do you mean that?
The output in the terminal?
Nothing is displayed there.

Offline

#8 2023-03-03 14:04:20

seth
Member
Registered: 2012-09-03
Posts: 49,981

Re: Conky Updates AUR

"checkupdates-aur" prints nothing?
In that case it's hardly a wonder that conky won't show anything either…

I've no idea how that thing is supposed to work, but what's the output of

pacman -Qm

?

Offline

#9 2023-03-03 14:32:20

barnd3
Member
Registered: 2023-02-07
Posts: 106

Re: Conky Updates AUR

pacman -Qm                                               SIGPIPE(13)|1 ↵  0.23   15:28  
aic94xx-firmware 30-9
apple_cursor 2.0.0-1
archlinux-appstream-data-pamac 1:20230220-1
ast-firmware 501-1
aurutils 11-1
autojump 22.5.3-9
brother-mfc-9142cdn 1.1.3-3
brscan4 0.4.11_1-1
checkupdates+aur 1-3
checkupdates-aur 0.04-1
checkupdates-with-aur 1.0-1
gnome-terminal-transparency 3.46.8-1
libpamac-full 1:11.4.1-2
lightdm-settings 1.6.1-1
mint-artwork-cinnamon 5.7-1
mint-themes-legacy 1.9.2-1
mint-y-icons-legacy 1.6.3-1
mkinitcpio-firmware 1.4.0-1
nvfancontrol 0.5.1-2
oh-my-zsh-git r6827.14978859c-1
paccache-hook 1.1.1-1
pacseek 1.7.7-1
pamac-all 10.4.3-1
pdfsam 5.0.3-1
perl-checkupdates-aur 0.04-1
perl-www-aur 0.22-3
reflector-simple 3.3-1
snapd 2.58.3-1
snapd-glib 1.63-1
streamlink-twitch-gui 2.2.0-1
timeshift 22.11.2-1
timeshift-autosnap 0.9-1
ttf-ms-fonts 2.0-12
ttf-nerd-fonts-hack-complete-git 20230303-1
ttf-symbola 14.00-1
ttf-vlgothic 20220612-1
upd72020x-fw 1:1.0.0-1
update-grub 0.0.1-7
wd719x-firmware 1-7
yay-git 11.3.1.r119.g0387dfd-1

Offline

#10 2023-03-03 14:39:06

seth
Member
Registered: 2012-09-03
Posts: 49,981

Re: Conky Updates AUR

On a brief glimpse, non of them looks dated?

Offline

#11 2023-03-03 14:47:21

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

Re: Conky Updates AUR

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

#12 2023-03-03 14:51:30

barnd3
Member
Registered: 2023-02-07
Posts: 106

Re: Conky Updates AUR

thanks for moving

pamac shows an update.
When I

Offline

#13 2023-03-03 15:15:58

seth
Member
Registered: 2012-09-03
Posts: 49,981

Re: Conky Updates AUR

When you…? What?

Offline

#14 2023-03-03 15:18:47

barnd3
Member
Registered: 2023-02-07
Posts: 106

Re: Conky Updates AUR

sorry vertippt... wink

Offline

#15 2023-03-03 15:41:04

loqs
Member
Registered: 2014-03-06
Posts: 17,194

Re: Conky Updates AUR

barnd3 wrote:

pamac shows an update.

Which package is pamac reporting an update for?  What is the new and old version of that package as reported by pamac?

Offline

#16 2023-03-03 15:46:41

barnd3
Member
Registered: 2023-02-07
Posts: 106

Re: Conky Updates AUR

pamac checkupdates                            
2 Aktualisierungen verfügbar:
libxi          1.8-2             -> 1.8-3              extra
oh-my-zsh-git  r6827.14978859c-1 -> r6829.95d0c4b60-1  AUR

Edit: "checkupdates" works, it shows me an update in Conky

Last edited by barnd3 (2023-03-03 15:48:30)

Offline

#17 2023-03-03 15:52:31

seth
Member
Registered: 2012-09-03
Posts: 49,981

Re: Conky Updates AUR

The git package is probably not reported because the "official" number is at r6192.be4a95297-1, so there's no deep inspection of the upstream git.

Offline

#18 2023-03-03 16:03:13

barnd3
Member
Registered: 2023-02-07
Posts: 106

Re: Conky Updates AUR

Great, and what can I do about it?

Offline

#19 2023-03-03 16:13:51

seth
Member
Registered: 2012-09-03
Posts: 49,981

Re: Conky Updates AUR

Write a patch or file a bug upstream (but keep in mind that the explanation is speculative for now)

Offline

#20 2023-03-03 16:22:39

barnd3
Member
Registered: 2023-02-07
Posts: 106

Re: Conky Updates AUR

OK, thanks for the help!

Offline

Board footer

Powered by FluxBB