about summary refs log tree commit diff
path: root/xnodev
blob: d146a153251a8eb0980c4815d3cc72836c9b2e72 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
#!/bin/bash
# xnodev - list not installed -devel packages for installed packages

xbps-query -Rs '' | sed 's/^.\(.\). \([^ ]*\)-.* .*/\1 \2/' | sort -k2 | awk '
	$1 == "-" && $2 ~ "-devel" {
		b = $2
		sub("-devel", "", b)
		if (s[b]) print $2
	}
	$1 == "*" { s[$2] = 1 }
'