2019-10-30 04:51:48 -06:00
|
|
|
#!/bin/sh -e
|
2020-05-01 00:07:20 -06:00
|
|
|
# List orphaned packages
|
2019-10-30 04:51:48 -06:00
|
|
|
|
|
|
|
cd "$KISS_ROOT/var/db/kiss/installed/"
|
2020-09-22 06:11:30 -06:00
|
|
|
set -- *
|
2019-10-30 04:51:48 -06:00
|
|
|
|
|
|
|
for pkg in *; do
|
|
|
|
case $pkg in
|
2020-05-03 14:40:34 -06:00
|
|
|
# Exemptions for orphans which aren't really
|
|
|
|
# orphans. Exclude them from the list.
|
2020-08-20 02:34:37 -06:00
|
|
|
baseinit|baselayout|gcc|e2fsprogs|musl|\
|
2020-05-03 14:40:34 -06:00
|
|
|
make|busybox|bzip2|grub|kiss|git)
|
2020-02-25 13:56:41 -07:00
|
|
|
continue
|
2019-10-30 04:51:48 -06:00
|
|
|
esac
|
|
|
|
|
|
|
|
grep -q "^$pkg$" ./*/depends || printf '%s\n' "$pkg"
|
|
|
|
done
|