How does one set up a centralized Julia installation?

See also https://github.com/JuliaLang/Pkg.jl/issues/961