about summary refs log tree commit diff
path: root/xmindep
blob: e758b06b11c51e0f0f0889c85fd1d16a25849c9e (plain) (blame)
1
2
3
4
5
6
7
8
9
10
#!/bin/sh
# xmindep PKGS... - minimize list of PKGS by removing implicit dependencies

rdeps() {
	for pkg; do
		xbps-query --fulldeptree -Rx $pkg
	done | xargs -d'\n' -rn1 xbps-uhelper getpkgname | sort -u
}

printf '%s\n' "$@" | grep -Fvx -e "$(rdeps "$@")" | sort -u | fmt