2021-08-15 15:51:24 +00:00
|
|
|
#!/usr/bin/env bash
|
2021-07-27 18:59:49 +00:00
|
|
|
|
2021-12-11 07:51:17 +00:00
|
|
|
MINOR="1.7"
|
|
|
|
VERSION="1.7.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
|
2021-12-11 07:51:17 +00:00
|
|
|
wget https://julialang-s3.julialang.org/bin/checksums/julia-${VERSION}.sha256
|
|
|
|
sha256sum -c julia-${VERSION}
|
2021-11-24 14:14:39 +00:00
|
|
|
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
|