$ rpm --initdb error: cannot get exclusive lock on /var/lib/rpm/Packages error: cannot open Packages index using db3 - (-1) $ echo $? 0 $
Fixed in rpm-4.0.4-alt66-g25f6805.