# How to use the faster compressed registry on v1.7 after updating?

**URL:** <https://discourse.julialang.org/t/how-to-use-the-faster-compressed-registry-on-v1-7-after-updating/72401>\
**Category:** General Usage\
**Created:** [December 1, 2021, 7:21pm UTC](https://discourse.julialang.org/t/how-to-use-the-faster-compressed-registry-on-v1-7-after-updating/72401 "2021-12-01T19:21:17Z")\
**Posts on this page:** 7\
**Page:** 1

<div class="post-metadata">

**Author:** ![longemen3000](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/longemen3000/32/7298_2.png) [@longemen3000](https://discourse.julialang.org/u/longemen3000)\
**Post date:** [December 1, 2021, 7:21pm UTC](https://discourse.julialang.org/t/how-to-use-the-faster-compressed-registry-on-v1-7-after-updating/72401/1 "2021-12-01T19:21:17Z")

</div>

i read somewhere that if you are upgrading, to use the new registry you have to delete the old one, what does that mean?

---

<div class="post-metadata">

**Author:** ![aramirezreyes](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/aramirezreyes/32/42573_2.png) [@aramirezreyes](https://discourse.julialang.org/u/aramirezreyes)\
**Post date:** [December 1, 2021, 7:30pm UTC](https://discourse.julialang.org/t/how-to-use-the-faster-compressed-registry-on-v1-7-after-updating/72401/2 "2021-12-01T19:30:32Z")

</div>

As far as I understand it only means doing:

```julia
]registry rm General
registry add General

```

In the ancient times (pre v1.4) the registry was a github repo which took longer to download. If you add it again it will pick up the new one (actually [it was introduced in v1.4 and made the default in v1.5](https://julialang.org/blog/2020/08/julia-1.5-highlights/#pkg_protocol_now_the_default)) which is a compressed tarball that in `v1.7` doesn’t even need to be unpacked so some package operations are much faster now.

It is better explained in the release [blog post](https://julialang.org/blog/2021/11/julia-1.7-highlights/#improved_performance_for_handling_registries_on_windows_and_distributed_file_systems).

---

<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:** [December 10, 2021, 5:21am UTC](https://discourse.julialang.org/t/how-to-use-the-faster-compressed-registry-on-v1-7-after-updating/72401/3 "2021-12-10T05:21:07Z")

</div>

If you are also using an older version of Julia (v1.6.x) together with 1.7, you might not want to do this. You might ultimately end up with both the tarball and and directory.

---

<div class="post-metadata">

**Author:** ![aramirezreyes](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/aramirezreyes/32/42573_2.png) [@aramirezreyes](https://discourse.julialang.org/u/aramirezreyes)\
**Post date:** [December 10, 2021, 4:55pm UTC](https://discourse.julialang.org/t/how-to-use-the-faster-compressed-registry-on-v1-7-after-updating/72401/4 "2021-12-10T16:55:18Z")

</div>

Could you expand a little? Would this cause a conflict?

---

<div class="post-metadata">

**Author:** ![DNF](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/dnf/32/10191_2.png) [@DNF](https://discourse.julialang.org/u/DNF)\
**Post date:** [December 10, 2021, 5:32pm UTC](https://discourse.julialang.org/t/how-to-use-the-faster-compressed-registry-on-v1-7-after-updating/72401/5 "2021-12-10T17:32:54Z")

</div>

How can I tell whether I have the compressed registry or not?

---

<div class="post-metadata">

**Author:** ![kristoffer.carlsson](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/kristoffer.carlsson/32/22_2.png) [@kristoffer.carlsson](https://discourse.julialang.org/u/kristoffer.carlsson)\
**Post date:** [December 10, 2021, 5:53pm UTC](https://discourse.julialang.org/t/how-to-use-the-faster-compressed-registry-on-v1-7-after-updating/72401/6 "2021-12-10T17:53:04Z")

</div>

> [@mkitti](#):
>
> You might ultimately end up with both the tarball and and directory.

There is no issue with this. 1.7 will use the compressed and 1.6 the directory.

---

<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:** [December 10, 2021, 7:22pm UTC](https://discourse.julialang.org/t/how-to-use-the-faster-compressed-registry-on-v1-7-after-updating/72401/7 "2021-12-10T19:22:59Z")

</div>

> [@kristoffer.carlsson](#):
>
> There is no issue with this. 1.7 will use the compressed and 1.6 the directory.

It’s perhaps redundant, but sure. Just to be clear,

- Executing `] registry rm General` in Julia 1.7 will remove the registry for Julia 1.6.
- Executing `] registry add General` in Julia 1.7 will not replace the registry for Julia 1.6.
- After executing the above in Julia 1.7, Julia 1.6 will need to **reinstall** the registry, which should be done automatically, but could take some time.
