1 2 3 4 5
#!/bin/bash package=kdegraphics if ( pkginfo -i | grep $package > /dev/null ) ; then pkgrm $package fi