# Best way to install julia with CLI on linux enviroment?

**URL:** https://discourse.julialang.org/t/best-way-to-install-julia-with-cli-on-linux-enviroment/75151
**Category:** General Usage
**Tags:** linux
**Created:** [January 25, 2022, 1:02am UTC](https://discourse.julialang.org/t/best-way-to-install-julia-with-cli-on-linux-enviroment/75151 "2022-01-25T01:02:10Z")
**Posts on this page:** 4
**Page:** 1

<div class="post-metadata">

### Author: ![rmsmsgood](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/rmsmsgood/32/20544_2.png) [@rmsmsgood](https://discourse.julialang.org/u/rmsmsgood)
#### Post date: [January 25, 2022, 1:02am UTC](https://discourse.julialang.org/t/best-way-to-install-julia-with-cli-on-linux-enviroment/75151/1 "2022-01-25T01:02:10Z")

</div>

Recently, i am interested in distributed computing and spend much time for install julia on our servers. But as i know, the installation of julia with CLI is very inconvenient until now.

I want command like below can install the julia at least LTS release.

```julia
sudo apt-get install julia

```

So far, we download `tar.gz` julia file at [Download Julia](https://julialang.org/downloads/) directly and make symbolic link one by one, and by our own hand. Is there good way to install julia with CLI on linux enviroment?

ps: `homebrew` or `yum` is not good choice, i tried already.

---

<div class="post-metadata">

### Author: ![simeonschaub](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/simeonschaub/32/216566_2.png) [@simeonschaub](https://discourse.julialang.org/u/simeonschaub)
#### Post date: [January 25, 2022, 1:16am UTC](https://discourse.julialang.org/t/best-way-to-install-julia-with-cli-on-linux-enviroment/75151/2 "2022-01-25T01:16:45Z")

</div>

You might want to check out Juliaup, which is a cross-platform Julia version manager:

> **[GitHub - JuliaLang/juliaup: Julia installer and version multiplexer](https://github.com/JuliaLang/juliaup)**
>
> Julia installer and version multiplexer. Contribute to JuliaLang/juliaup development by creating an account on GitHub.

Mac and Linux support is still somewhat experimental, but it has been working pretty reliably for me so far.

There is also [jill.py](https://github.com/johnnychen94/jill.py), which is a bit more established and still has some features Juliaup doesn’t.

---

<div class="post-metadata">

### Author: ![contradict](https://avatars.discourse-cdn.com/v4/letter/c/ac91a4/32.png) [@contradict](https://discourse.julialang.org/u/contradict)
#### Post date: [January 25, 2022, 4:23pm UTC](https://discourse.julialang.org/t/best-way-to-install-julia-with-cli-on-linux-enviroment/75151/3 "2022-01-25T16:23:53Z")

</div>

I use [GNU Stow](https://www.gnu.org/software/stow/) for this. Download the tar, and then:

```
sudo tar -C /usr/local/stow -xzf julia-${VERSION}-${ARCH}.tar.gz
sudo stow -D -d /usr/local/stow julia-${PREVIOUSVERSION} # remove old version
sudo stow -d /usr/local/stow julia-${VERSION}

```

This leaves `$PREVIOUSVERSION` available at `/usr/local/stow` if you need to swtich back. I usually keep one or two old versions and manually clean up when it is unlikely I will need it any more.

---

<div class="post-metadata">

### Author: ![sylvaticus](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/sylvaticus/32/203883_2.png) [@sylvaticus](https://discourse.julialang.org/u/sylvaticus)
#### Post date: [January 25, 2022, 4:51pm UTC](https://discourse.julialang.org/t/best-way-to-install-julia-with-cli-on-linux-enviroment/75151/4 "2022-01-25T16:51:09Z")

</div>

If the problem is to install on multiple machines you could also just make a custom installation script, if the problem is to make julia available to multiple users you could put a basic script on `/usr/local/sbin/adduser.local` that initialise the julia user folder for the specific user that is added…
