Build XNAT from Source Repository


These instructions are intended for those would would like to build a developmental version of XNAT (use with caution) or would like to install a specific/older minor version.  If you just want to install the most recent release-quality version of XNAT, the easiest method is via the standard installation guide.


Please review the XNAT license before installing the software. Your right to use this software is contingent on your acceptance of the license. Download and installation of software implies acceptance of this license.

Get Source Code

The current development version of XNAT is located in the xnat_builder_1_6dev repository. The released version is essentially just a zipped version of the tagged source revision (with a few files added).

We will now clone two Mercurial repositories by using command line instructions in your desired installation directory.  If you don't have Mercurial installed, you can download it here.

1. Clone xnat_builder

hg clone xnat

If you are interested in checking out a specific tag (e.g. the 1.6.0 release), use the -r option on the clone command:

hg clone -r 1.6 xnat


2. Clone the pipeline manager

XNAT requires the pipeline project to be cloned into a subdirectory of xnat called "pipeline"

cd xnat
hg clone pipeline


From here you can follow the standard standard installation guide, skipping step 1.