NRW:Arbeitsgruppe/Technik/Mapserver/list-custom-packages.sh

< NRW:Arbeitsgruppe‎ | Technik‎ | Mapserver
Version vom 8. Oktober 2012, 18:19 Uhr von imported>Jan (Die Seite wurde neu angelegt: „<pre> #!/bin/bash if [ -f preexisting-packages.txt ] then # Get all manually installed packages except those belonging to the default install. Then remov…“)
(Unterschied) ← Nächstältere Version | Aktuelle Version (Unterschied) | Nächstjüngere Version → (Unterschied)
#!/bin/bash

if [ -f preexisting-packages.txt ]
then
        # Get all manually installed packages except those belonging to the default install. Then remove all that appear in the preexisting-packages.txt list
        aptitude search '?installed !?automatic !?priority(important) !?priority(required)' -F '%p#' | sed 's/\s*$//g' | sort -u | comm -23 - preexisting-packages.txt
else
        echo ERROR: List of preexisting packages is missing
fi