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
prefer
red overv
- before versions
v
isprefer
red over (including unknown versions) - skip operation if
entry
already 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 = false
skip the actual download and installationverbose = dry_run
print 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:force
will 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 = true
install for all users,false
only installs for current user.install_location = systemwide ? "/opt" or "/opt/hostedtoolcache/julia/1.9.4" : "/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 = ...
theVersionNumber
to installurl = ...
URL to download that version from, if you explicitly seturl
, also explicitly setv
lest they differ