1 2 3 4 5
#!/bin/bash package=kdemultimedia if ( pkginfo -l $package 2>&1 >/dev/null ) ; then pkgrm $package fi