installing julia package code example

Example 1: julia install linux

# How does the last version Julia install in Ubuntu 16.04 or above? 
# Wget Magic
# Copy and paste on your favorite linux console :)
sudo pwd  && cd ~/Downloads && wget -q -O- https://julialang.org/downloads/ | grep -Po '(?<=href=")[^"]*' | grep https://julialang-s3.julialang.org/bin/linux/x64/ | head -1 | xargs wget -O julia-x86_64.tar.gz && mkdir julia-x86_64 && tar -xvzf julia-x86_64.tar.gz -C julia-x86_64 --strip-components 1 && sudo cp -r julia-x86_64 /opt/ && sudo ln -s /opt/julia-x86_64/bin/julia /usr/local/bin/julia && julia

Example 2: julia install

# Windows
choco install julia --confirm

# Mac
brew cask install julia

# Debian/Ubuntu
sudo apt install julia