# How to install the newest version of a package?

**URL:** <https://discourse.julialang.org/t/how-to-install-the-newest-version-of-a-package/118110>\
**Category:** General Usage\
**Tags:** question, package, pkg\
**Created:** [August 12, 2024, 9:13pm UTC](https://discourse.julialang.org/t/how-to-install-the-newest-version-of-a-package/118110 "2024-08-12T21:13:49Z")\
**Posts on this page:** 4\
**Page:** 2

<div class="post-metadata">

**Author:** ![mkitti](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/mkitti/32/12459_2.png) [@mkitti](https://discourse.julialang.org/u/mkitti)\
**Post date:** [August 13, 2024, 12:30pm UTC](https://discourse.julialang.org/t/how-to-install-the-newest-version-of-a-package/118110/21 "2024-08-13T12:30:56Z")

</div>

> [@ufechner7](#):
>
> `KiteModels#v0.6.3`

In case it is not clear, there is a difference between `add KiteModels#v0.6.3` and `add KiteModels@0.6.3`.

---

<div class="post-metadata">

**Author:** ![ericphanson](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/ericphanson/32/215186_2.png) [@ericphanson](https://discourse.julialang.org/u/ericphanson)\
**Post date:** [August 13, 2024, 12:51pm UTC](https://discourse.julialang.org/t/how-to-install-the-newest-version-of-a-package/118110/22 "2024-08-13T12:51:32Z")

</div>

> [@ufechner7](#):
>
> So perhaps I had an outdated registry. Where is the registry stored?

The registry is stored in the depot, under the `registries` subdirectory.

> [@ufechner7](#):
>
> Is there one registry stored per project, or one per Julia depot?

There is one per depot.

> [@ufechner7](#):
>
> When does Julia fetch a new version of the registry?

As I mentioned [here](https://discourse.julialang.org/t/how-to-install-the-newest-version-of-a-package/118110/5), by default fetches a new registry on the first pkg command in the session, and you will see a log message saying it is updating the registry, but you may have disabled this in your startup.jl (I don’t know). It also updates automatically when you run `update` (but that also updates your packages).

> [@ufechner7](#):
>
> Is there a command to force that?

You can run `] registry update` to update the registries manually.

---

<div class="post-metadata">

**Author:** ![ufechner7](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/ufechner7/32/51363_2.png) [@ufechner7](https://discourse.julialang.org/u/ufechner7)\
**Post date:** [August 13, 2024, 12:53pm UTC](https://discourse.julialang.org/t/how-to-install-the-newest-version-of-a-package/118110/23 "2024-08-13T12:53:18Z")

</div>

> [@mkitti](#):
>
> In case it is not clear, there is a difference between `add KiteModels#v0.6.3` and `add KiteModels@0.6.3`.

What is the difference?

---

<div class="post-metadata">

**Author:** ![mkitti](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/mkitti/32/12459_2.png) [@mkitti](https://discourse.julialang.org/u/mkitti)\
**Post date:** [August 13, 2024, 12:58pm UTC](https://discourse.julialang.org/t/how-to-install-the-newest-version-of-a-package/118110/24 "2024-08-13T12:58:11Z")

</div>

The first one with the `#` specifies a git revision. The second one with the `@` specifies a package version.

[Previous page](https://discourse.julialang.org/t/how-to-install-the-newest-version-of-a-package/118110.md?page=1)
