# How to update packages under development to the latest commit?

**URL:** https://discourse.julialang.org/t/how-to-update-packages-under-development-to-the-latest-commit/30607
**Category:** General Usage
**Tags:** question, package
**Created:** [November 1, 2019, 9:11pm UTC](https://discourse.julialang.org/t/how-to-update-packages-under-development-to-the-latest-commit/30607 "2019-11-01T21:11:48Z")
**Posts on this page:** 4
**Page:** 1

<div class="post-metadata">

### Author: ![monty](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/monty/32/44234_2.png) [@monty](https://discourse.julialang.org/u/monty)
#### Post date: [November 1, 2019, 9:11pm UTC](https://discourse.julialang.org/t/how-to-update-packages-under-development-to-the-latest-commit/30607/1 "2019-11-01T21:11:48Z")

</div>

how to update packages under development to the latest commit in Julia REPL without using git?

I was expecting that the '] update` will work but it did not?!

---

<div class="post-metadata">

### Author: ![Mattriks](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/mattriks/32/351_2.png) [@Mattriks](https://discourse.julialang.org/u/Mattriks)
#### Post date: [November 1, 2019, 10:31pm UTC](https://discourse.julialang.org/t/how-to-update-packages-under-development-to-the-latest-commit/30607/2 "2019-11-01T22:31:51Z")

</div>

I don’t think `Pkg` will ever touch packages in the .julia/dev directory. But if you just want the latest updates, without developing a package, you can do:

```julia
]add PackageName#master

```

The [Pkg docs](https://julialang.github.io/Pkg.jl/v1/managing-packages/#Adding-registered-packages-1) say “When updating packages, we will pull updates from that branch.”

---

<div class="post-metadata">

### Author: ![hendri54](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/hendri54/32/9621_2.png) [@hendri54](https://discourse.julialang.org/u/hendri54)
#### Post date: [November 2, 2019, 12:10pm UTC](https://discourse.julialang.org/t/how-to-update-packages-under-development-to-the-latest-commit/30607/3 "2019-11-02T12:10:06Z")

</div>

Your question is perhaps ambiguous.

Are you asking: You have a package used with `pkg> dev MyPackageSpec`. How do I update this without restarting the REPL as its code changes (because you edit it)?  
The answer to that question would be REVISE.jl.

Or are you asking: You have `dev`ed a package using its git url. How do I update it when it gets changed on github?  
The answer to that question is: pull a new version from github “by hand.” Julia tracks the changes in the local directory automatically. See [Pkg docs](https://julialang.github.io/Pkg.jl/v1/managing-packages/).

> Note that the package manager will never touch any of the files at a tracked path. It is therefore up to you to pull updates, change branches etc.

---

<div class="post-metadata">

### Author: ![monty](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/monty/32/44234_2.png) [@monty](https://discourse.julialang.org/u/monty)
#### Post date: [November 4, 2019, 4:30am UTC](https://discourse.julialang.org/t/how-to-update-packages-under-development-to-the-latest-commit/30607/4 "2019-11-04T04:30:58Z")

</div>

This very helpful. I will use

```julia
]add PackageName#master

```
