# How to switch JuliaPro to use the General registry?

**URL:** <https://discourse.julialang.org/t/how-to-switch-juliapro-to-use-the-general-registry/17253>\
**Category:** Tooling\
**Tags:** juliapro\
**Created:** [November 7, 2018, 12:48pm UTC](https://discourse.julialang.org/t/how-to-switch-juliapro-to-use-the-general-registry/17253 "2018-11-07T12:48:46Z")\
**Posts on this page:** 11\
**Page:** 1

<div class="post-metadata">

**Author:** ![Zhong\_Pan](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/zhong_pan/32/19872_2.png) [@Zhong\_Pan](https://discourse.julialang.org/u/Zhong_Pan)\
**Post date:** [November 7, 2018, 12:48pm UTC](https://discourse.julialang.org/t/how-to-switch-juliapro-to-use-the-general-registry/17253/1 "2018-11-07T12:48:46Z")

</div>

I wanted to try PackageCompiler, but JuliaPro registry has not included it yet:

```julia
(JuliaPro_v1.0.1.1) pkg> add PackageCompiler
  Updating registry at `C:\JuliaPro-1.0.1.1\pkgs-1.0.1.1\registries\JuliaPro`
  Updating git-repo `https://pkg.juliacomputing.com/registry/JuliaPro`
ERROR: The following package names could not be resolved:
 * PackageCompiler (not found in project, manifest or registry)
Please specify by known `name=uuid`.

```

I saw that the General registry included it:

> **[General/P/PackageCompiler at master · JuliaRegistries/General](https://github.com/JuliaRegistries/General/tree/master/P/PackageCompiler)**
>
> master/P/PackageCompiler

However, I don’t know how to switch to use the General registry. I did find string “[https://pkg.juliacomputing.com/](https://pkg.juliacomputing.com/)” inside C:\JuliaPro-1.0.1.1\Julia-1.0.1\etc\julia\startup.jl and tried replacing it with “[https://github.com/JuliaRegistries/General/](https://github.com/JuliaRegistries/General/)” then restarting Julia, but that didn’t seem to work.

I also tried directly adding from GitHub, but was soon led to a rabbit hole of dependency tree:

```julia
(JuliaPro_v1.0.1.1) pkg> add https://github.com/JuliaLang/PackageCompiler.jl
  Updating git-repo `https://github.com/JuliaLang/PackageCompiler.jl`
[ Info: Assigning UUID e7f35708-9c4f-53ac-b576-fe1e8b0e8cf1 to PackageCompiler
 Resolving package versions...
ERROR: The following package names could not be resolved:
 * ArgParse (not found in project, manifest or registry)
 * SnoopCompile (not found in project, manifest or registry)
Please specify by known `name=uuid`.

```

etc. etc.

Does someone know how to switch JuliaPro to use the General registry (temporarily)? Thanks!

---

<div class="post-metadata">

**Author:** ![heliosdrm](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/heliosdrm/32/3851_2.png) [@heliosdrm](https://discourse.julialang.org/u/heliosdrm)\
**Post date:** [November 7, 2018, 1:21pm UTC](https://discourse.julialang.org/t/how-to-switch-juliapro-to-use-the-general-registry/17253/2 "2018-11-07T13:21:39Z")

</div>

Just clone the General registry in the same folder where your JuliaPro registry lives (seemingly in `C:\JuliaPro-1.0.1.1\pkgs-1.0.1.1\registries`). Let us know if that does not work.

---

<div class="post-metadata">

**Author:** ![Zhong\_Pan](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/zhong_pan/32/19872_2.png) [@Zhong\_Pan](https://discourse.julialang.org/u/Zhong_Pan)\
**Post date:** [November 7, 2018, 1:24pm UTC](https://discourse.julialang.org/t/how-to-switch-juliapro-to-use-the-general-registry/17253/3 "2018-11-07T13:24:42Z")

</div>

Sorry I have little experience dealing with software registries. Can you elaborate the steps to “clone the General registry”? Is it a file to be downloaded and copied into a folder? Don’t I need to change any settings of JuliaPro (e.g. the link in the startup.jl file I mentioned) so Julia knows where to search for a new package? Thanks!!!

---

<div class="post-metadata">

**Author:** ![heliosdrm](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/heliosdrm/32/3851_2.png) [@heliosdrm](https://discourse.julialang.org/u/heliosdrm)\
**Post date:** [November 7, 2018, 1:53pm UTC](https://discourse.julialang.org/t/how-to-switch-juliapro-to-use-the-general-registry/17253/4 "2018-11-07T13:53:08Z")

</div>

You have three options:

1. If you have Git installed, go to `C:\JuliaPro-1.0.1.1\pkgs-1.0.1.1\registries`, and execute `git clone https://github.com/JuliaRegistries/General.git`.
2. If you don’t have Git or do not want to use it, go to [GitHub - JuliaRegistries/General: The official registry of general Julia packages](https://github.com/JuliaRegistries/General), click the button “Clone or download”, download it as a zip file, and extract it into `C:/JuliaPro-1.0.1.1/pkgs-1.0.1.1/registries`.
3. You may use the LibGit2 module within Julia (it is available in the JuliaPro registry, so you should be able to install and use it). In this case:

```julia
pkg>add LibGit2
julia>using LibGit2
julia>LibGit2.clone("https://github.com/JuliaRegistries/General.git",
      "C:/JuliaPro-1.0.1.1/pkgs-1.0.1.1/registries/General")

```

There is nothing else to be done - except perhaps restart Julia.

---

<div class="post-metadata">

**Author:** ![heliosdrm](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/heliosdrm/32/3851_2.png) [@heliosdrm](https://discourse.julialang.org/u/heliosdrm)\
**Post date:** [November 7, 2018, 1:57pm UTC](https://discourse.julialang.org/t/how-to-switch-juliapro-to-use-the-general-registry/17253/5 "2018-11-07T13:57:00Z")

</div>

Oops. Option no. 2 (download it as a zip) is not advisable, since the downloaded file is not a git repository, only a snapshot of the current version. So better use Git (in Julia with LibGit2 or as an external tool, as you prefer).

---

<div class="post-metadata">

**Author:** ![Zhong\_Pan](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/zhong_pan/32/19872_2.png) [@Zhong\_Pan](https://discourse.julialang.org/u/Zhong_Pan)\
**Post date:** [November 7, 2018, 4:11pm UTC](https://discourse.julialang.org/t/how-to-switch-juliapro-to-use-the-general-registry/17253/6 "2018-11-07T16:11:46Z")

</div>

Thank you very much for the reply!

Yesterday to try the General registry I installed the standard Julia 1.0.1 and found it much faster to start and load a module than JuliaPro 1.0.1. So I will use the standard one for now and try the PackageCompiler over there. When I come back to JuliaPro in the near future I’ll try the cloning method you explained.

---

<div class="post-metadata">

**Author:** ![avik](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/avik/32/17_2.png) [@avik](https://discourse.julialang.org/u/avik)\
**Post date:** [November 8, 2018, 5:18pm UTC](https://discourse.julialang.org/t/how-to-switch-juliapro-to-use-the-general-registry/17253/7 "2018-11-08T17:18:35Z")

</div>

This should work, but a new version of JuliaPro will have an easy way to switch registries, since this seems to be a common request. Hopefully that will be released next week.

---

<div class="post-metadata">

**Author:** ![Zhong\_Pan](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/zhong_pan/32/19872_2.png) [@Zhong\_Pan](https://discourse.julialang.org/u/Zhong_Pan)\
**Post date:** [November 8, 2018, 9:28pm UTC](https://discourse.julialang.org/t/how-to-switch-juliapro-to-use-the-general-registry/17253/8 "2018-11-08T21:28:55Z")

</div>

That sounds encouraging. Thanks!

---

<div class="post-metadata">

**Author:** ![Zach\_Hurwitz](https://avatars.discourse-cdn.com/v4/letter/z/67e7ee/32.png) [@Zach\_Hurwitz](https://discourse.julialang.org/u/Zach_Hurwitz)\
**Post date:** [November 12, 2018, 7:32pm UTC](https://discourse.julialang.org/t/how-to-switch-juliapro-to-use-the-general-registry/17253/9 "2018-11-12T19:32:38Z")

</div>

About how long did it take to clone the git registries, mine has been running for 20 minutes now with no sign of progress…

---

<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:** [August 2, 2019, 11:32am UTC](https://discourse.julialang.org/t/how-to-switch-juliapro-to-use-the-general-registry/17253/10 "2019-08-02T11:32:32Z")

</div>

@avik did that new version of JuliaPro come out yet with easy way to switch registries?  
I just installed version 1.1.1.1 and I can’t find any documentation on how to use General.

---

<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:** [September 12, 2023, 4:41pm UTC](https://discourse.julialang.org/t/how-to-switch-juliapro-to-use-the-general-registry/17253/11 "2023-09-12T16:41:35Z")

</div>


