leahneukirchen/xtools

xmyupd

Anachron opened this issue · 0 comments

Maybe useful for some people: A script that compares void-packages to your locally installed packages and only lists the last update accordingly.

#!/bin/sh

vu="${XDG_CACHE_HOME:-$HOME/.cache/}/xmyupd.txt"; ! test -f "${vu}" || find "${vu}" -mtime 1
 -delete
test -f "${vu}" || curl -s "https://repo-default.voidlinux.org/void-updates/void-updates.txt" > "${vu}" 
xpkg | sort | awk '{print "^"$0" "}' | grep -w -f - "${vu}" | awk '{print $1" "$4}'  | sort -k2rn | sort -sbuk1,1