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

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

As far as I understand it only means doing:

]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) 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.


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.

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

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

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.
1 Like