#!/bin/bash for pkg in $(rpm -qa | sort ); do echo "===$pkg===" rpm -qc $pkg echo done