# oslevel -s
cannot get shared lock on database
rpmQuery: rpmdbOpen() failed
6100-07-01-1141
To Fix:
1. Verify if there's any rpm process active.
# ps -ef | grep rpm
2. If there's "rpm" process, kill them all.
# kill -9 [process number] [...]
3. Rebuild RPM DB.
# rpm --rebuilddb