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

Aus Piratenwiki
Wechseln zu: Navigation, Suche
#!/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