summaryrefslogtreecommitdiff
blob: ef7b26dedaabf29faf34249b64f2fc4567196335 (plain)
1
2
3
4
5
6
7
8
9
#!/bin/bash
VDB_DIR=/var/db/pkg
count() {
    echo ${1} $(grep -l ${1} ${VDB_DIR}/*/*/REPOSITORY | wc -l)
}

for i in $(cave print-repositories | grep -Ev '(installed|layman|repository)'); do
    count ${i}
done