UpdateJulia
Prefer the README for better documentation.
Documentation for UpdateJulia.
UpdateJulia.insert_path — Methodinsert_path(path, entry, v)Insert path entry after valid & preferred julia but before unknown & unpreferred julia
Insert entry into path following these guidelines
- after versions
preferred overv - before versions
vispreferred over (including unknown versions) - skip operation if
entryalready meets above guidelines - before existing entries for
v - as late as possible
Not part of the public API
UpdateJulia.prefer — Methodprefer(v1, v2)Whether to prefer v1 over v2.
Not part of the public API.
UpdateJulia.update_julia — Functionupdate_julia(version::AbstractString="")Install the latest version of Julia from https://julialang.org
If version is provided, installs the latest version that starts with version. If version == "nightly", then installs the bleeding-edge nightly version.
Keyword Arguments
Behavior flags
dry_run = falseskip the actual download and installationverbose = dry_runprint the final value of all argumentsmigrate_packages = <upgrading to a later version of Julia without an existing global environment>whether to migrate packages in the default global environment. May betrue,false, or:force. Only:forcewill replace an existing Project.toml
Destination
aliases = ["julia", "julia-$(v.major).$(v.minor)", "julia-$v"]which aliases to attempt to create for the installed version of Julia. Regardless, will not replace stable versions with less stable versions or newer versions with older versions of the same stability.systemwide = trueinstall for all users,falseonly installs for current user.install_location = systemwide ? "/opt" or "/opt/hostedtoolcache/julia/1.10.0" : "/home/runner/.local"directory to put installed binariesbin = systemwide ? "/usr/local/bin" : "/home/runner/.local/bin"directory to store links to the binaries
Source
os_str = "linux"string representation of the operating system: "linux", "mac", "winnt", or "freebsd".arch = "x86_64"string representation of the CPU architecture: "x86_64", "i686", "aarch64", "armv7l", or "powerpc64le".v = ...theVersionNumberto installurl = ...URL to download that version from, if you explicitly seturl, also explicitly setvlest they differ