csutcliff

Untitled

Nov 27th, 2025
3,669
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.50 KB | None | 0 0
  1. sudo pacman -U (find /var/cache/pacman/pkg/ -maxdepth 1 -name 'qt6-*-6.10.0-*.pkg.tar.zst' | python -c '
  2. import sys
  3. from pathlib import Path
  4. from collections import defaultdict
  5.  
  6. packages = defaultdict(list)
  7. for line in sys.stdin:
  8. path = Path(line.strip())
  9. # Extract package name without version
  10. parts = path.stem.rsplit("-", 3) # removes -pkgrel-arch
  11. pkgname = parts[0]
  12. packages[pkgname].append(str(path))
  13.  
  14. for pkgname, files in packages.items():
  15. print(sorted(files)[-1])
  16. ')
Advertisement
Add Comment
Please, Sign In to add comment