Changes between Initial Version and Version 1 of Build/VariousShortcuts


Ignore:
Timestamp:
Aug 4, 2010 8:40:52 AM (14 years ago)
Author:
thomas
Comment:

--

Legend:

Unmodified
Added
Removed
Modified
  • Build/VariousShortcuts

    v1 v1  
     1{{{
     2rpm -qp --qf '%{sourcerpm}\n' i386/* i686/* | sort | uniq > rpms.i386
     3rpm -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{{{
     9rpm -qp --qf '%{sourcerpm}\n' * | sort|uniq | awk -F- 'BEGIN {OFS="-"} {NF=NF-2; print $0}' | uniq -d
     10}}}
     11or
     12{{{
     13find . -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{{{
     27find i386 -name \*.rpm -exec rpm -qp --qf '%{sourcerpm}\n' '{}' \; |sort|uniq > /tmp/src.rpm-i386
     28find x86_64 -name \*.rpm -exec rpm -qp --qf '%{sourcerpm}\n' '{}' \; |sort|uniq > /tmp/src.rpm-x86_64
     29}}}
     30then compare them - should be pretty similar with very few differences
     31{{{
     32diff -urN /tmp/src.rpm*
     33}}}