diff --git a/help/_posts/2020-05-25-julia.md b/help/_posts/2020-05-25-julia.md index 143fd6b..1d04c52 100644 --- a/help/_posts/2020-05-25-julia.md +++ b/help/_posts/2020-05-25-julia.md @@ -101,9 +101,7 @@ Julia `v1.4.0` 之前的版本采用的是 `git clone` 的方式拉取注册表 以默认注册表 `General` 为例,只需要手动将其重置到镜像站即可: 1. 删除当前注册表:`(@v1.4) pkg> registry rm General` -2. 从镜像站下载/拉取注册表(二选一): - * (PkgServer): `(@v1.4) pkg> registry add General` -- 因为不兼容的原因,旧的 Julia 版本将无法更新注册表 - * (Git Repo):`(@v1.4) pkg> registry add https://{{ site.hostname }}/git/julia-general.git` -- 依然兼容早期 Julia 版本 +2. 从镜像站下载/拉取注册表: `(@v1.4) pkg> registry add General` -- 将无法在旧 Julia 版本中更新注册表 ### 为什么有些包还是从原地址下载? diff --git a/help/_posts/2020-06-05-julia-general.git.md b/help/_posts/2020-06-05-julia-general.git.md deleted file mode 100644 index 025258e..0000000 --- a/help/_posts/2020-06-05-julia-general.git.md +++ /dev/null @@ -1,22 +0,0 @@ ---- -category: help -layout: help -mirrorid: julia-general.git ---- - -## Julia 默认注册表 General 仓库镜像 - -该镜像仅为 Julia 默认注册表 [General](https://github.com/JuliaRegistries/General) 仓库的 Git 镜像。 -若需要包括 Julia 包以及二进制依赖在内的完整的镜像,请参考 [Julia 镜像使用帮助]({{ site.url }}/help/julia/)。 - -## 使用方式 - -Julia 包注册表存放在`$JULIA_DEPOT_PATH/registries`(默认为 `~/.julia/registries`) 文件夹下。以默认情况为例: - -1. 若存在的话,删除原有的 `General`: `rm -rf ~/.julia/registries/General` -2. 将该镜像克隆到对应目录下:`git clone https://{{ site.hostname }}/git/julia-general.git ~/.julia/registries/General` - -对于 Julia `v1.1` 及以后版本,可以通过 Julia 内置的注册表管理功能来做到: - -1. `(@v1.4) pkg> registry rm General` -2. `(@v1.4) pkg> registry add https://{{ site.hostname }}/git/julia-general.git`