How do I determine which version of Berkeley DB a repository is using?
If it’s a live repository, then the easy answer is “Whatever version of Berkeley DB you have installed”. If, however, it is a repository from a backup, or some unknown source, and you have no idea which version of Berkeley DB it was made with, here’s how you find out: Run some command to view the two 4-byte integers at offsets 12 and 16 (decimal) in the highest-numbered db/log.* file in the repository. Here is an example using GNU od: “od -j12 -N8 -tx4 log.