forked from kiss-community/kiss
16 lines
345 B
Bash
Executable File
16 lines
345 B
Bash
Executable File
#!/bin/sh -e
|
|
# List orphaned packages
|
|
|
|
cd "$KISS_ROOT/var/db/kiss/installed"
|
|
|
|
# List of installed packages.
|
|
printf -- '%s\n' * > "${TMPDIR:-/tmp}/packages"
|
|
|
|
# List of runtime dependencies.
|
|
grep -hv ' make\|^#' ./*/depends | sort -u |
|
|
|
|
# Remove items in list 2 from list 1.
|
|
comm -23 "${TMPDIR:-/tmp}/packages" -
|
|
|
|
rm -f "${TMPDIR:-/tmp}/packages"
|