For appeals, questions and feedback about Oracle Forums, please email oracle-forums-moderators_us@oracle.com. Technical questions should be asked in the appropriate category. Thank you!
I found that RPM database in Red Hat Linux is based on Berkeley DB. I found this document for Java and Berkeley DB:
http://docs.oracle.com/cd/E17076_02/html/gsg/JAVA/BerkeleyDB-Core-JAVA-GSG.pdf
I found that there are two version of Berkley DBL native and Java edition. Can use this package
https://www.odesk.com/leaving-odesk?ref=http%3A%2F%2Fwww.findjar.com%2Fjar%2Fberkeleydb%2Fberkeleydb-native%2F4.2%2Fberkeleydb-native-4.2.jar.html%3Fall%3Dtrue
to access the RPM database file in /var/lib/rpm?