Follow

@angrylinus
Btw I keep three versions in cache. My current solution is roughly the following:
ls /var/cache/pacman/pkg \
| grep --extended-regexp "^${pkg_name}-[0-9].*\.pkg\.tar\.(xz|zst)$" \
| sort --version-sort \
| tail -n 1

· Edited · · Tusky · 0 · 0 · 0
Sign in to participate in the conversation
Qoto Mastodon

QOTO: Question Others to Teach Ourselves
An inclusive, Academic Freedom, instance
All cultures welcome.
Hate speech and harassment strictly forbidden.