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