You are not logged in.
how can i search for aur updates with conky?
Unfortunately, "checkupdates-aur" does not work
Offline
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
"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
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
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
Did you actually look at the checkupdates-aur output
Offline
How do you mean that?
The output in the terminal?
Nothing is displayed there.
Offline
"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
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
On a brief glimpse, non of them looks dated?
Offline
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
thanks for moving
pamac shows an update.
When I
Offline
When you…? What?
Offline
sorry vertippt...
Offline
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
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
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
Great, and what can I do about it?
Offline
Write a patch or file a bug upstream (but keep in mind that the explanation is speculative for now)
Offline
OK, thanks for the help!
Offline