#!/bin/bash for FILE in `ls -1 *.rpm`; do RPM=${FILE%-*rpm}; rpm -q $RPM | grep not; done