Files
utility_scripts/list_manual_pkgs.sh
2023-07-19 19:38:47 +01:00

7 lines
278 B
Bash

#!/bin/sh
# one-liner to list just the names of packages manually-installed with xbps-install, with no version numbers etc
xbps-query --list-manual-pkgs | awk '{gsub(/-[0-9]+.*$/, ""); print $0}'
# alternative sed version:
# xbps-query --list-manual-pkgs | sed "s/-[0-9].*//g"