Created
December 10, 2015 08:17
-
-
Save haraldh/edfb96fbe67c4bce3bb1 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
readonly TMPDIR="$(mktemp -d -t checkrpmset.XXXXXX)" | |
trap ' | |
ret=$?; | |
[[ $TMPDIR ]] && rm -rf -- "$TMPDIR"; | |
exit $ret; | |
' EXIT | |
rpms=( | |
fedora-repos-rawhide.noarch | |
basesystem.noarch | |
ncurses-base.noarch | |
tzdata.noarch | |
fedora-release.noarch | |
generic-release.noarch | |
fedora-repos.noarch | |
setup | |
bash | |
filesystem | |
glibc | |
glibc-common | |
libgcc | |
libselinux | |
libsepol | |
libstdc++ | |
ncurses-libs | |
nss-softokn-freebl | |
pcre | |
) | |
repoquery --arch x86_64,noarch "${rpms[@]}" 2>/dev/null | sort -u > $TMPDIR/t1 | |
repoquery --arch x86_64,noarch --resolve --recursive --requires "${rpms[@]}" 2>/dev/null | sort -u > $TMPDIR/t2 | |
diff -u $TMPDIR/t1 $TMPDIR/t2 |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment