# Is there a terminal command to upgrade from 1.1.0 to 1.1.1  ?

**URL:** https://discourse.julialang.org/t/is-there-a-terminal-command-to-upgrade-from-1-1-0-to-1-1-1/24301
**Category:** New to Julia
**Created:** [May 17, 2019, 2:51am UTC](https://discourse.julialang.org/t/is-there-a-terminal-command-to-upgrade-from-1-1-0-to-1-1-1/24301 "2019-05-17T02:51:09Z")
**Posts on this page:** 9
**Page:** 1

<div class="post-metadata">

### Author: ![paulgureghian](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/paulgureghian/32/4115_2.png) [@paulgureghian](https://discourse.julialang.org/u/paulgureghian)
#### Post date: [May 17, 2019, 2:51am UTC](https://discourse.julialang.org/t/is-there-a-terminal-command-to-upgrade-from-1-1-0-to-1-1-1/24301/1 "2019-05-17T02:51:09Z")

</div>

I installed Julia from a binary.

---

<div class="post-metadata">

### Author: ![fredrikekre](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/fredrikekre/32/1688_2.png) [@fredrikekre](https://discourse.julialang.org/u/fredrikekre)
#### Post date: [May 17, 2019, 6:59am UTC](https://discourse.julialang.org/t/is-there-a-terminal-command-to-upgrade-from-1-1-0-to-1-1-1/24301/2 "2019-05-17T06:59:26Z")

</div>

There are no such things as e.g. `julia --update` which I am guessing is what you are after.

However, updating is as easy as downloading and extracting, so you could do something like

```bash
$ curl https://julialang-s3.julialang.org/bin/linux/x64/1.1/julia-1.1.1-linux-x86_64.tar.gz |
  tar -xz -C /path/to/some/directory

```

---

<div class="post-metadata">

### Author: ![paulgureghian](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/paulgureghian/32/4115_2.png) [@paulgureghian](https://discourse.julialang.org/u/paulgureghian)
#### Post date: [May 17, 2019, 2:46pm UTC](https://discourse.julialang.org/t/is-there-a-terminal-command-to-upgrade-from-1-1-0-to-1-1-1/24301/3 "2019-05-17T14:46:33Z")

</div>

Do I need to uninstall Julia first ?

---

<div class="post-metadata">

### Author: ![ExpandingMan](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/expandingman/32/866_2.png) [@ExpandingMan](https://discourse.julialang.org/u/ExpandingMan)
#### Post date: [May 17, 2019, 2:52pm UTC](https://discourse.julialang.org/t/is-there-a-terminal-command-to-upgrade-from-1-1-0-to-1-1-1/24301/4 "2019-05-17T14:52:57Z")

</div>

The Julia “installation” has two components: the binaries and the “depot”. You can replace the binaries at your whim, as long as you have the `JULIA_BINDIR` set. Your packages, environments and configuration are typically stored in `~/.julia`. None of this will care at all about the upgrade from 1.1.0 to 1.1.1. When you run Julia it will just realize that a bunch of the pre-compile cache’s are out of date and re-build those as necessary. If you upgrade from 1.1 to 1.2 (not released yet) or even 1.0 to 2.0, for example, the process will be similar, except that it will default to a new package environment (by default these are associated with the first two numbers of the version).

So, in summary, you can always just go ahead and replace your binaries.

---

<div class="post-metadata">

### Author: ![paulgureghian](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/paulgureghian/32/4115_2.png) [@paulgureghian](https://discourse.julialang.org/u/paulgureghian)
#### Post date: [May 17, 2019, 6:17pm UTC](https://discourse.julialang.org/t/is-there-a-terminal-command-to-upgrade-from-1-1-0-to-1-1-1/24301/5 "2019-05-17T18:17:49Z")

</div>

So, I cd into the folder where the file is saved, then unzip and install it into an already created folder ?

---

<div class="post-metadata">

### Author: ![paulgureghian](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/paulgureghian/32/4115_2.png) [@paulgureghian](https://discourse.julialang.org/u/paulgureghian)
#### Post date: [May 17, 2019, 6:31pm UTC](https://discourse.julialang.org/t/is-there-a-terminal-command-to-upgrade-from-1-1-0-to-1-1-1/24301/6 "2019-05-17T18:31:23Z")

</div>

I tried to overwrite the old version but that didnt happen, so I just changed the system path env variable to point to the new folder .

---

<div class="post-metadata">

### Author: ![VincentTam](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/vincenttam/32/8358_2.png) [@VincentTam](https://discourse.julialang.org/u/VincentTam)
#### Post date: [May 18, 2019, 12:56pm UTC](https://discourse.julialang.org/t/is-there-a-terminal-command-to-upgrade-from-1-1-0-to-1-1-1/24301/7 "2019-05-18T12:56:25Z")

</div>

IMHO, deleting and re-installing the whole thing _isn’t_ that difficult (at least, under \*nix).

1. `rm -rf {your-old-julia-binary-folder}`

2. using @fredrikekre’s command

This is quicker and cleaner the overwriting existing Julia’s directory. For installed packages, `~/.julia/` with automatically take care of them. For instance, you have `v1.0` and `v1.1` in `~/.julia/compiled`.

In practice, [`Pkg> st` and `Pkg> update`](https://discourse.julialang.org/t/pkg-add-pycall-every-time/24136/2) in the new version will take care of everything.

---

<div class="post-metadata">

### Author: ![paulgureghian](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/paulgureghian/32/4115_2.png) [@paulgureghian](https://discourse.julialang.org/u/paulgureghian)
#### Post date: [May 18, 2019, 10:14pm UTC](https://discourse.julialang.org/t/is-there-a-terminal-command-to-upgrade-from-1-1-0-to-1-1-1/24301/8 "2019-05-18T22:14:35Z")

</div>

What is the “st” in st and Pkg ?

---

<div class="post-metadata">

### Author: ![fredrikekre](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/fredrikekre/32/1688_2.png) [@fredrikekre](https://discourse.julialang.org/u/fredrikekre)
#### Post date: [May 19, 2019, 7:30am UTC](https://discourse.julialang.org/t/is-there-a-terminal-command-to-upgrade-from-1-1-0-to-1-1-1/24301/9 "2019-05-19T07:30:59Z")

</div>

> [@paulgureghian](#):
>
> What is the “st” in st and Pkg ?

It is short for `status`, the Pkg REPL mode command: [11. REPL Mode Reference · Pkg.jl](https://julialang.github.io/Pkg.jl/v1/repl/#repl-status)
