Yes, You read it right i actually want to corrupt RPMDB for testing purpose. I tried Googling it but all i got was to, how to rebuild it.
So at last i tried
rpm --rebuilddb and killed the process in execution.
Then i verified by
usr/lib/rpm/rpmdb_verify /var/lib/rpm/Packages echo $? 0 I need it output 1. which means that RPMDB is corrupt