I use Gnu Stow. I extract the julia tar file in /usr/local/stow and then stow creates the necessary symlinks to install everything. Installing in /usr/local does require root access, if you don’t have that you could use a subdirectory of $HOME for your stow and target directories.
curl https://julialang-s3.julialang.org/bin/linux/x64/1.8/julia-1.8.4-linux-x86_64.tar.gz -o - \
| sudo tar -C /usr/local/stow -xzf-
# remove the symlinks to the previous version
sudo stow -Dd /usr/local/stow julia-1.8.3
# Install the new symlinks
sudo stow -d /usr/local/stow julia-1.8.4
Why not use Docker and simply spin up a container from my JupyterLab Julia docker stack.
→ Multi-arch (linux/amd64 , linux/arm64/v8 ) docker images based on Debian including Julia, JupyterHub, JupyterLab, code-server (aka VS Code), Git, Git LFS, Pandoc, Zsh plus several popular VS Code extensions.
These images have Julia installed at /opt/julia. For Julia versions 1.9 and later, Julia will be installed at /usr/local/julia.
with respect to Julia, no, but in general yes, many times. My root prompt is root# in bright red, and it reminds me to be extra careful about moving and removing things. And Julia works just fine when installed not as root.