MRAA Update

The mraa library is bundled in the Ref-OS-IoT image. If you choose to update this library, the mapping can change and may be beyond the scope of this document.

The following command will build the latest libmraa (MRAA) from source:

curl | sh

If you want to develop code using MRAA or UPM in Java*, you’ll need to add the Java bindings -- because they are excluded by default from the reference image to save space. To build the Java* bindings as well, include the following Cmake flag in line 30 of the file:


You can also check the version of MRAA installed by using the command:

mraa-gpio version



For more complete information about compiler optimizations, see our Optimization Notice.