Skip to content

Instantly share code, notes, and snippets.

@jaantollander
Created July 23, 2021 08:15
Show Gist options
  • Save jaantollander/d670630c0c79de4604789dcae00a7135 to your computer and use it in GitHub Desktop.
Save jaantollander/d670630c0c79de4604789dcae00a7135 to your computer and use it in GitHub Desktop.
Example of how to download and install Julia Language to home directory from the command line.
# You can choose a Julia release from https://julialang.org/downloads/
# Set URL for downloading Julia binaries
JULIA_URL="https://julialang-s3.julialang.org/bin/linux/x64/1.6/julia-1.6.2-linux-x86_64.tar.gz"
# Set name for the downloaded archive
JULIA_ARCHIVE="~/julia.tar.gz"
# Download the Julia language binaries
curl -o ${JULIA_ARCHIVE} ${JULIA_URL}
# Uncompress (-z) and extract (-z) files (-f) from archive
tar -x -z -f ${JULIA_ARCHIVE}
# Remove the archive file after extraction
rm ${JULIA_ARCHIVE}
# Add Julia executable to the PATH in `.bashrc`
echo 'export PATH="${PATH}:${HOME}/julia-1.6.2/bin"' >> ~/.bashrc
# Add Julia executable to the PATH
export PATH="${PATH}:${HOME}/julia-1.6.2/bin"
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment