This patch automates removal of a Berkeley DB dbenv when DB_VERSION_MISMATCH or EINVAL is returned. Patch was generated against CentOS 5.2 rpm-4.4.2-48.el5.src.rpm package. I'm more than willing to generate the same patch for C4 or C3 or C2 or any other version of rpm, the patch is easier than the explanation of what to do. Sent to <rpm-devel@rpm5.org> so that I have a public URI reference point. 73 de Jeff