# How long does it take until I can install a new package version?

**URL:** <https://discourse.julialang.org/t/how-long-does-it-take-until-i-can-install-a-new-package-version/117475>\
**Category:** General Usage\
**Tags:** question\
**Created:** [July 25, 2024, 2:57pm UTC](https://discourse.julialang.org/t/how-long-does-it-take-until-i-can-install-a-new-package-version/117475 "2024-07-25T14:57:52Z")\
**Posts on this page:** 7\
**Page:** 1

<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:** [July 25, 2024, 2:57pm UTC](https://discourse.julialang.org/t/how-long-does-it-take-until-i-can-install-a-new-package-version/117475/1 "2024-07-25T14:57:52Z")

</div>

I updated this package more than an hour ago:

> **[GitHub - aenarete/KitePodModels.jl: Models of control pods of remote...](https://github.com/aenarete/KitePodModels.jl)**
>
> Models of control pods of remote controlled kites. Contribute to aenarete/KitePodModels.jl development by creating an account on GitHub.

But if I try to install it in an empty project I get an outdated version:

```julia
using Pkg
Pkg.add("KitePodModels")

```

installs version 3.2, not version 3.3

How long can it take until I can install the latest version?

---

<div class="post-metadata">

**Author:** ![gdalle](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/gdalle/32/27854_2.png) [@gdalle](https://discourse.julialang.org/u/gdalle)\
**Post date:** [July 25, 2024, 3:18pm UTC](https://discourse.julialang.org/t/how-long-does-it-take-until-i-can-install-a-new-package-version/117475/2 "2024-07-25T15:18:53Z")

</div>

If you run `Pkg.Registry.update()` you should be able to get the latest version afterwards.

---

<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:** [July 25, 2024, 3:21pm UTC](https://discourse.julialang.org/t/how-long-does-it-take-until-i-can-install-a-new-package-version/117475/3 "2024-07-25T15:21:03Z")

</div>

Doesn’t help:

```julia
julia> using Pkg

julia> Pkg.Registry.update()
    Updating registry at `~/.julia/registries/General.toml`

(tmp) pkg> up
    Updating registry at `~/.julia/registries/General.toml`
  No Changes to `~/repos/tmp/Project.toml`
  No Changes to `~/repos/tmp/Manifest.toml`

(tmp) pkg> st
Status `~/repos/tmp/Project.toml`
  [9de5dc81] KitePodModels v0.3.2

```

---

<div class="post-metadata">

**Author:** ![mbauman](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/mbauman/32/31082_2.png) [@mbauman](https://discourse.julialang.org/u/mbauman)\
**Post date:** [July 25, 2024, 3:43pm UTC](https://discourse.julialang.org/t/how-long-does-it-take-until-i-can-install-a-new-package-version/117475/4 "2024-07-25T15:43:13Z")

</div>

I don’t know the answer in general, but you can see what commit of the General Registry the package servers are currently serving based on the contents of `~/.julia/registries/General.toml`. That first line is the tree hash, and the commit with that hash for me currently ([`7a149fdb1`](https://github.com/JuliaRegistries/General/commit/7a149fdb1f802f52633fc1058f4249861a437f65)) is from three hours ago.

---

<div class="post-metadata">

**Author:** ![dilumaluthge](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/dilumaluthge/32/29283_2.png) [@dilumaluthge](https://discourse.julialang.org/u/dilumaluthge)\
**Post date:** [July 25, 2024, 3:51pm UTC](https://discourse.julialang.org/t/how-long-does-it-take-until-i-can-install-a-new-package-version/117475/5 "2024-07-25T15:51:47Z")

</div>

It’s usually very quick, but sometimes there can be a delay if e.g. the Pkg Servers are processing some large artifacts, or something like that.

If you need the absolute latest version of the registry, you can set the `PKG_SERVER_REGISTRY_PREFERENCE` environment variable to `eager`, and then do a `Pkg.Registry.update()`. This should almost always give you the latest version of the registry.

---

<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:** [July 25, 2024, 4:00pm UTC](https://discourse.julialang.org/t/how-long-does-it-take-until-i-can-install-a-new-package-version/117475/6 "2024-07-25T16:00:28Z")

</div>

Now it works. So about 2h. It can be very fast, but it can also take 2h.

---

<div class="post-metadata">

**Author:** ![mbauman](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/mbauman/32/31082_2.png) [@mbauman](https://discourse.julialang.org/u/mbauman)\
**Post date:** [July 25, 2024, 4:02pm UTC](https://discourse.julialang.org/t/how-long-does-it-take-until-i-can-install-a-new-package-version/117475/7 "2024-07-25T16:02:12Z")

</div>

Note that the package servers are now serving a commit from 38 minutes ago. It varies.
