Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- sudo pacman -U (find /var/cache/pacman/pkg/ -maxdepth 1 -name 'qt6-*-6.10.0-*.pkg.tar.zst' | python -c '
- import sys
- from pathlib import Path
- from collections import defaultdict
- packages = defaultdict(list)
- for line in sys.stdin:
- path = Path(line.strip())
- # Extract package name without version
- parts = path.stem.rsplit("-", 3) # removes -pkgrel-arch
- pkgname = parts[0]
- packages[pkgname].append(str(path))
- for pkgname, files in packages.items():
- print(sorted(files)[-1])
- ')
Advertisement
Add Comment
Please, Sign In to add comment