| 1 | {{{ |
| 2 | rpm -qp --qf '%{sourcerpm}\n' i386/* i686/* | sort | uniq > rpms.i386 |
| 3 | rpm -qp --qf '%{sourcerpm}\n' x86_64/* | sort | uniq > rpms.x86_64 |
| 4 | }}} |
| 5 | |
| 6 | - To check if there are rpms in a repo coming from different version of |
| 7 | src.rpm: |
| 8 | {{{ |
| 9 | rpm -qp --qf '%{sourcerpm}\n' * | sort|uniq | awk -F- 'BEGIN {OFS="-"} {NF=NF-2; print $0}' | uniq -d |
| 10 | }}} |
| 11 | or |
| 12 | {{{ |
| 13 | find . -name \*.rpm -exec rpm -qp --qf '%{sourcerpm}\n' '{}' \; | sort|uniq | awk -F- 'BEGIN {OFS="-"} {NF=NF-2; print $0}' | uniq -d |
| 14 | }}} |
| 15 | |
| 16 | - To check for obsoletes: |
| 17 | {{{ |
| 18 | rpm --obsoletes -qp *| perl -pi -e 's|\(none\)||g' | sort | uniq > /tmp/obsoletes.txt |
| 19 | }}} |
| 20 | remove all comparisons from above - ends up in /tmp/obsoletes.txt-3 |
| 21 | {{{ |
| 22 | ls *rpm | sort > /tmp/a.txt |
| 23 | for i in `cat /tmp/obsoletes.txt-3`; do grep "^$i$" /tmp/a.txt ; done|sort|uniq |
| 24 | }}} |
| 25 | - to make sure all the debuginfo are there and only those that need to be |
| 26 | {{{ |
| 27 | find i386 -name \*.rpm -exec rpm -qp --qf '%{sourcerpm}\n' '{}' \; |sort|uniq > /tmp/src.rpm-i386 |
| 28 | find x86_64 -name \*.rpm -exec rpm -qp --qf '%{sourcerpm}\n' '{}' \; |sort|uniq > /tmp/src.rpm-x86_64 |
| 29 | }}} |
| 30 | then compare them - should be pretty similar with very few differences |
| 31 | {{{ |
| 32 | diff -urN /tmp/src.rpm* |
| 33 | }}} |