dotfiles/scripts/julia.sh

35 lines
717 B
Bash
Raw Normal View History

#!/usr/bin/env bash
2021-07-27 18:59:49 +00:00
2022-08-19 13:49:23 +00:00
MINOR="1.8"
VERSION="1.8.0"
2021-07-27 18:59:49 +00:00
function install () {
echo "installing julia"
cd ~
2021-11-24 14:14:39 +00:00
wget https://julialang-s3.julialang.org/bin/linux/x64/${MINOR}/julia-${VERSION}-linux-x86_64.tar.gz
tar zxvf julia-${VERSION}-linux-x86_64.tar.gz
sudo mv julia-${VERSION} julia
2021-07-27 18:59:49 +00:00
sudo mv julia /opt/julia
2021-11-24 14:14:39 +00:00
sudo rm julia-${VERSION}-linux-x86_64.tar.gz
2021-08-17 05:08:52 +00:00
printf "\n\n"
julia --version
2021-07-27 18:59:49 +00:00
}
function uninstall () {
echo "uninstalling julia"
sudo rm -rf ~/.julia
sudo rm -rf /opt/julia
}
# function help () {
# coming soon
# }
if [ "$1" == "install" ]; then
install
elif [ "$1" == "uninstall" ] || [ "$1" == "remove" ]; then
uninstall
else
echo "please specify args with install or uninstall"
fi