You are not logged in.
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
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
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
Last edited by skunktrader (2022-03-17 00:44:03)
Offline
Hi, what command can replace checkupdates+aur ?
Offline
Hi, what command can replace checkupdates+aur ?
Literally the post directly above yours...
Run
pacman -Qm | aur vercmp
to get the same output as checkupdates-aur
Offline
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
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
So you run that with checkupdates... Or would you like someone here to write the script for you?
Offline