Find the version of a Subversion respository

To find the version of a Subversion repository you will need to have file system access on the server where the repository is hosted.

For this example we'll assume that your repository lives here:


Just read the contents of the db/format file inside your repository directory to find the version.>

cat /var/lib/svn/main/db/format
layout linear

The first line gives the database format version which relates to the repository version:

  • 4 = 1.6
  • 3 = 1.5
  • 2 = 1.4 or older

Last updated: 02/05/2011