#!/bin/bash
if [[ $EUID -ne 0 ]]
then
    echo "This script must be run as root"
else
    rm -f /var/lib/rpm/__db*
    rpm -vv --rebuilddb
fi
