# General registry delays, and a workaround

**URL:** https://discourse.julialang.org/t/general-registry-delays-and-a-workaround/67537
**Category:** Package Management
**Tags:** package, pkg, registry, general-registry
**Created:** [September 1, 2021, 10:43pm UTC](https://discourse.julialang.org/t/general-registry-delays-and-a-workaround/67537 "2021-09-01T22:43:14Z")
**Posts on this page:** 6
**Page:** 1

<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: [September 1, 2021, 10:43pm UTC](https://discourse.julialang.org/t/general-registry-delays-and-a-workaround/67537/1 "2021-09-01T22:43:14Z")

</div>

From time to time, you may notice that a new package or new version is not available for installation on your local computer, even though the corresponding pull request has been merged in the General registry.

This is caused by the Pkg Servers serving an outdated version of the General registry. It is a [known issue](https://github.com/JuliaRegistries/General/issues/16777), and we are actively working on it.

In the meantime, if you need immediate access to new packages or new versions, you can switch from the Pkg Server registry to the Git registry.

Here are the steps for switching to the Git registry:

```julia
julia> import Pkg

julia> Pkg.Registry.rm("General")

julia> ENV["JULIA_PKG_SERVER"] = ""

julia> Pkg.Registry.add("General")

```

* * *

In order to switch back to the Pkg Server registry, run the following:

```julia
julia> import Pkg

julia> Pkg.Registry.rm("General")

julia> delete!(ENV, "JULIA_PKG_SERVER")

julia> Pkg.Registry.add("General")

```

---

<div class="post-metadata">

### Author: ![cjdoris](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/cjdoris/32/213133_2.png) [@cjdoris](https://discourse.julialang.org/u/cjdoris)
#### Post date: [September 2, 2021, 7:52am UTC](https://discourse.julialang.org/t/general-registry-delays-and-a-workaround/67537/2 "2021-09-02T07:52:54Z")

</div>

For completeness, how do you undo this?

---

<div class="post-metadata">

### Author: ![GunnarFarneback](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/gunnarfarneback/32/1827_2.png) [@GunnarFarneback](https://discourse.julialang.org/u/GunnarFarneback)
#### Post date: [September 2, 2021, 8:12am UTC](https://discourse.julialang.org/t/general-registry-delays-and-a-workaround/67537/3 "2021-09-02T08:12:35Z")

</div>

To turn back to a registry from the package server:

```julia
julia> import Pkg

julia> Pkg.Registry.rm("General")

julia> Pkg.Registry.add("General")

```

(This assumes that you haven’t set the `JULIA_PKG_SERVER` environment variable to an empty string outside of Julia or earlier in the same Julia session.)

---

<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: [September 2, 2021, 5:54pm UTC](https://discourse.julialang.org/t/general-registry-delays-and-a-workaround/67537/4 "2021-09-02T17:54:55Z")

</div>

> [@GunnarFarneback](#):
>
> (This assumes that you haven’t set the `JULIA_PKG_SERVER` environment variable to an empty string outside of Julia or earlier in the same Julia session.)

To account for this, you could instead do the following.

In order to switch back to the Pkg Server registry, run the following:

```julia
julia> import Pkg

julia> Pkg.Registry.rm("General")

julia> delete!(ENV, "JULIA_PKG_SERVER")

julia> Pkg.Registry.add("General")

```

I’ve added these instructions to the original post.

---

<div class="post-metadata">

### Author: ![StefanKarpinski](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/stefankarpinski/32/24_2.png) [@StefanKarpinski](https://discourse.julialang.org/u/StefanKarpinski)
#### Post date: [September 18, 2021, 6:50pm UTC](https://discourse.julialang.org/t/general-registry-delays-and-a-workaround/67537/5 "2021-09-18T18:50:59Z")

</div>



---

<div class="post-metadata">

### Author: ![JeffFessler](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/jefffessler/32/6650_2.png) [@JeffFessler](https://discourse.julialang.org/u/JeffFessler)
#### Post date: [October 10, 2021, 6:13pm UTC](https://discourse.julialang.org/t/general-registry-delays-and-a-workaround/67537/6 "2021-10-10T18:13:17Z")

</div>

> [@dilumaluthge](#):
>
> ```julia
> julia> ENV["JULIA_PKG_SERVER"] = ""
> 
> ```

Sometimes it also seems be helpful to add this line to github CI scripts so that `Documenter` will run properly. Here is an example:

> <https://github.com/JuliaArrays/LazyGrids.jl/blob/399d6112c91f3778f0c769bf58ccd8e24f69881f/.github/workflows/Documentation.yml#L33>
