Skip to content

Instantly share code, notes, and snippets.

@amoralej

amoralej/check_pkgs_fedora.sh Secret

Created Nov 27, 2020
Embed
What would you like to do?
grep ^+ $1 |grep rpms|awk '{print $3}'| tr -d ':'|while read a
do
curl -s https://src.fedoraproject.org/api/0/$a|grep -q orphan
if [ $? -eq 0 ]; then
echo "$a orphaned"
else
curl -s https://src.fedoraproject.org/api/0/$a/tree/master/f/dead.package|grep -q EFILENOTFOUND
if [ $? -ne 0 ]; then
echo "$a removed"
fi
fi
done
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment