Created
September 2, 2011 18:35
-
-
Save goozbach/1189431 to your computer and use it in GitHub Desktop.
running a rpm compare.
This file contains hidden or 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
$ ls | |
bc-1.06-1rt.x86_64.rpm bc-1.06-21.x86_64.rpm | |
bc-1.06-1rt.x86_64.rpm.output bc-1.06-21.x86_64.rpm.output |
This file contains hidden or 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
$ cat *.output | |
/usr/local/bin/bc: | |
linux-vdso.so.1 => (0x00007fff93311000) | |
libc.so.6 => /lib64/libc.so.6 (0x00007f608ec67000) | |
/lib64/ld-linux-x86-64.so.2 (0x00007f608efbf000) | |
/usr/local/bin/dc: | |
linux-vdso.so.1 => (0x00007fff7b3ff000) | |
libc.so.6 => /lib64/libc.so.6 (0x00007f7605daf000) | |
/lib64/ld-linux-x86-64.so.2 (0x00007f7606107000) | |
/usr/bin/bc: | |
linux-vdso.so.1 => (0x00007fff8a7ff000) | |
libreadline.so.5 => /usr/lib64/libreadline.so.5 (0x00007f0454b9b000) | |
libtermcap.so.2 => /lib64/libtermcap.so.2 (0x00007f0454998000) | |
libc.so.6 => /lib64/libc.so.6 (0x00007f0454640000) | |
/lib64/ld-linux-x86-64.so.2 (0x00007f0454dd8000) | |
/usr/bin/dc: | |
linux-vdso.so.1 => (0x00007fff685b0000) | |
libc.so.6 => /lib64/libc.so.6 (0x00007f6119aaf000) | |
/lib64/ld-linux-x86-64.so.2 (0x00007f6119e07000) |
This file contains hidden or 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
$ cat *.output | cut -f 1 -d ' ' | |
/usr/local/bin/bc: | |
linux-vdso.so.1 | |
libc.so.6 | |
/lib64/ld-linux-x86-64.so.2 | |
/usr/local/bin/dc: | |
linux-vdso.so.1 | |
libc.so.6 | |
/lib64/ld-linux-x86-64.so.2 | |
/usr/bin/bc: | |
linux-vdso.so.1 | |
libreadline.so.5 | |
libtermcap.so.2 | |
libc.so.6 | |
/lib64/ld-linux-x86-64.so.2 | |
/usr/bin/dc: | |
linux-vdso.so.1 | |
libc.so.6 | |
/lib64/ld-linux-x86-64.so.2 |
This file contains hidden or 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
$ cat *.output | cut -f 1 -d ' ' | |
/usr/local/bin/bc: | |
linux-vdso.so.1 | |
libc.so.6 | |
/lib64/ld-linux-x86-64.so.2 | |
/usr/local/bin/dc: | |
linux-vdso.so.1 | |
libc.so.6 | |
/lib64/ld-linux-x86-64.so.2 | |
/usr/bin/bc: | |
linux-vdso.so.1 | |
libreadline.so.5 | |
libtermcap.so.2 | |
libc.so.6 | |
/lib64/ld-linux-x86-64.so.2 | |
/usr/bin/dc: | |
linux-vdso.so.1 | |
libc.so.6 | |
/lib64/ld-linux-x86-64.so.2 |
This file contains hidden or 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
for i in *.rpm; | |
do | |
mock --install $i; | |
mock --chroot 'rpm -ql bc | xargs file | grep executable | cut -f 1 -d ':' | xargs ldd' 2>/dev/null > ${i}.output; | |
mock --chroot 'rpm -e bc'; | |
done |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment