[erlang-questions] OTP Version

Fred Hebert mononcqc@REDACTED
Thu Jul 17 23:21:44 CEST 2014


On 07/17, Tristan Sloughter wrote:
> If for all OTP 17.x.y the runtime is going to consider it 17:
> 
> 1> erlang:system_info(otp_release).
> "17"
> 

For reverence, the new method to get the version according to the docs
is: http://www.erlang.org/doc/system_principles/versions.html

    In an OTP source code tree, the OTP version can be read from the text
    file <OTP source root>/OTP_VERSION. The absolute path to the file can be
    constructed by calling filename:join([code:root_dir(), "OTP_VERSION"]).

    In an installed OTP development system, the OTP version can be read from
    the text file <OTP installation root>/releases/<OTP release
    number>/OTP_VERSION. The absolute path to the file can by constructed by
    calling filename:join([code:root_dir(), "releases",
    erlang:system_info(otp_release), "OTP_VERSION"]).

Do note that the version number can be followed by '**', meaning it was
patched with otp_patch_apply.



More information about the erlang-questions mailing list