You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
ghc/abi-check.sh

15 lines
407 B

#!/bin/sh
REL=$(rpm -q --qf "%{release}" ghc-compiler)
ARCH=$(arch)
PKGS=$(rpm -qa | grep -- -$REL | grep -v -- -devel | sort | sed -e "s/-[0-9.]\+-.*//")
for i in $PKGS; do
LOCAL=$(rpm -q --provides $i | grep ^ghc\( | grep -v =)
REPO=$(dnf repoquery -q --provides $i | grep ^ghc\( | grep -v = | sort | uniq)
if [ "$LOCAL" != "$REPO" ]; then
echo $LOCAL
echo $REPO
fi
done