Skip to content

Instantly share code, notes, and snippets.

@emmett1
emmett1 / slack-revdep.sh
Last active March 1, 2024 22:04
script to find broken package for Slackware Linux
#!/bin/sh
#
# script to find broken package for Slackware Linux
#
SEARCH_DIRS="/bin /usr/bin /sbin /usr/sbin /lib /usr/lib /lib64 /usr/lib64 /usr/libexec"
TMPFILE=$(mktemp)
trap 'rm -f $TMPFILE; printf "\033[0K"; exit 1' 1 2 3 15