Back

compareDistroRPMs.py

Size: 3.1 kBCreated: 2011-10-20 21:38Modified: 2022-10-22 15:36Downloaded: 3 591x
    Funktion: Vergleicht zwei Dateien die mit 'rpm -qa | sort > rpm_xx.yy' erzeugt wurden um herauszufinden welche Pakete sich
             in der alten Installation (erste Datei file) befinden und in der neuen Installation (zweite Datei)
             Der letzte Parameter kann ein regulärer Ausdruck sein um bestimmte Pakete von der Liste auszuschliesen, z.B. "(lib|yast2|sax2|bundle)"
             schliesst alle Pakete die mit lib oder yast2 oder sax2 oder bundle beginnen aus.
             
             Beispiel: Erstelle eine Datei auf der alten Installation als root mit 'rpm -qa | sort > rpm_11.2.lst'
                 und erstelle eine Datei auf der neuen Installation als root mit 'rpm -qa | sort > rpm_11.4.lst'
                 Danach dieses Script aufrufen mit  
                     ./compareDistroRPMs.py rpm_11.2.lst rpm_11.4.lst "(lib|yast2|sax2|bundle)

    Purpose: Compare two files created with 'rpm -qa | sort > rpm_xx.yy' listings to find out which packages were installed
             in the old installation (first file) and are not installed in the new installation (second file)
             Last parameter can be a regular expression of to exclude some packages from the list, e.g. "(lib|yast2|sax2|bundle)"
             excludes all packages starting with lib or yast2 or sax2 or bundle
             
             Example: Create listing on old installation as root with 'rpm -qa | sort > rpm_11.2.lst'
                 and create listing on new installation as root with 'rpm -qa | sort > rpm_11.4.lst'
                 Then call this script with
                     ./compareDistroRPMs.py rpm_11.2.lst rpm_11.4.lst "(lib|yast2|sax2|bundle)"