checking for installed packages on redhat with rpm, not yum