about summary refs log tree commit diff
path: root/xmindep
blob: cada61e8bad4aa4de5bcd6d588161c38e7f26e35 (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 "$@")" | fmt