Safer yum

We got sick of yum hanging on corrupt RPM databases.

Though @scoot suggests, instead, running a rebuild-if-needed cron job on all hosts instead of wrapping the yum command:

0 * * * * /usr/lib/rpm/rpmdb_verify /var/lib/rpm/[A-Z]* > /dev/null 2>&1 || rpm --rebuilddb

Pick your poison.

Filed under Linux, Sysadmin, UNIX/Linux