about summary refs log tree commit diff
path: root/check-world
blob: cc92562c10f23eb6b7bbb8f0f98cabde66483564 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
#!/bin/sh

world="/var/lib/portage/world"

[ -f "${world}" ] || exit

while read -r line; do
    if [ -n "$(qdepends --quiet --query "${line}")" ]; then
        echo "${line}"
    fi
done <"${world}"

Consider giving Nix/NixOS a try! <3