Giter Site home page Giter Site logo

elpa's Introduction

elpa-mirror

Mirrors for some Emacs package archives. These mirrors should be used only when official repository is temporarily down. Maintained using mirror-elpa.

Usage - GitHub

Just setup package-archives in your init.el file.

(setq package-archives
      '(("melpa" . "https://raw.githubusercontent.com/d12frosted/elpa-mirror/master/melpa/")
        ("org"   . "https://raw.githubusercontent.com/d12frosted/elpa-mirror/master/org/")
        ("gnu"   . "https://raw.githubusercontent.com/d12frosted/elpa-mirror/master/gnu/")))

Usage - GitLab

Just setup package-archives in your init.el file.

(setq package-archives
      '(("melpa" . "https://gitlab.com/d12frosted/elpa-mirror/raw/master/melpa/")
        ("org"   . "https://gitlab.com/d12frosted/elpa-mirror/raw/master/org/")
        ("gnu"   . "https://gitlab.com/d12frosted/elpa-mirror/raw/master/gnu/")))

Usage - Local

First, you need to clone this repository.

$ git clone --depth 1 [email protected]:d12frosted/elpa-mirror.git ~/.elpa-mirror

And then setup package-archives in your init.el file.

(setq package-archives
      `(("melpa" . ,(concat user-home-directory ".elpa-mirror/melpa/"))
        ("org"   . ,(concat user-home-directory ".elpa-mirror/org/"))
        ("gnu"   . ,(concat user-home-directory ".elpa-mirror/gnu/"))))

Usage with Spacemacs

To use elpa-mirror with Spacemacs, you need to modify configuration-layer-elpa-archives. To do so, just add following code to the dotspacemacs/init function.

;; remote
(setq configuration-layer-elpa-archives
      '(("melpa" . "https://raw.githubusercontent.com/d12frosted/elpa-mirror/master/melpa/")
        ("org"   . "https://raw.githubusercontent.com/d12frosted/elpa-mirror/master/org/")
        ("gnu"   . "https://raw.githubusercontent.com/d12frosted/elpa-mirror/master/gnu/")))

;; local
(setq configuration-layer-elpa-archives
      `(("melpa" . ,(concat user-home-directory ".elpa-mirror/melpa/"))
        ("org"   . ,(concat user-home-directory ".elpa-mirror/org/"))
        ("gnu"   . ,(concat user-home-directory ".elpa-mirror/gnu/"))))

For more grained control over package-archives (e. g. if you wish to use mirror only when one of the official repositories is down) checkout how it’s implemented in Spacemacs.

elpa's People

Contributors

0owen avatar zilongshanren avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

elpa's Issues

[2018-04-14] 镜像无法访问

@xuchunyang
无法下载任何package, 无法刷新软件源.
主页访问正常

网络环境: 河南电信

Error message:

M-x list-package:
Importing package-keyring.gpg...done
error in process filter: End of file during parsing: /usr/share/emacs/25.3/lisp/gnus/message.elc [2 times]
M-x package-refresh-contents:
Importing package-keyring.gpg...done
Contacting host: elpa.emacs-china.org:443
Failed to download ‘melpa’ archive.
Contacting host: elpa.gnu.org:80

部分文件权限有问题

Hi there,

从 rsync://elpa.emacs-china.org/elpa/ 同步时遇到如下错误:

rsync: send_files failed to open "/melpa/isearch+-20161130.926.el" (in elpa): Permission denied (13)
IO error encountered -- skipping file deletion

应该是这个文件没有读权限

Cheers,

Get started

Hello @emacs-china/elpa-people!

关于是否搭建 Emacs China ELPA 镜像的投票已经结束了,结果是支持搭建:

https://emacs-china.org/t/emacs-china-elpa/217

Emacs China ELPA mirror 致力于为**大陆用户提供稳定的、高速的各大 ELPA 镜像。

这个项目的开发已经日后的维护工作均在此 Repo 展开,@emacs-china/elpa-people 小组负责本项目,你可以根据自己的喜好自由进出该小组,如果疑问,请用一个新的 issue 提出。

Happy M-xing !

prescient下载错误

我在GitHub clone了我的配置到本地之后,启动Emacs来安装插件,当编译到prescient的时候,提示我要关闭编译插件进程,然后我不管选哪个最后都会报错说prescient没有加载,我不知道这什么问题

Spacemacs 修改配置后安装 package 时仍然采用 elpa 原地址

配置中加了如下语句

(setq package-archives '(("gnu"   . "http://elpa.zilongshanren.com/gnu/")
                         ("melpa" . "http://elpa.zilongshanren.com/melpa/")
                         ("org"   . "http://elpa.zilongshanren.com/org/")))

但 update package 的时候仍然会从原始的网址获取,导致必须翻墙。请教如何解决,谢谢。

镜像构建时间间隔需要调整

image

melpa构建一次要 5 个小时,我认为镜像的更新时间应该大于 5 小时,最好 6 小时更新一次,否则没有任何意义。

公告:更新周期由 4 小时调整至 8 小时

刚刚注意到 Travis-CI 超过 4 小时不更新了,通过 API 手动启动更新也没用,排除掉 Cron 的问题。并且 Travis CI 显示最后一次更新刚刚好是第 100 次,而 Travis CI 的收费计划上说

Your first 100 builds are free!

https://travis-ci.com/plans

我猜它的意思是每个月。

所以我把更新的周期调整为 8 小时,这样的话,每个月会 build 90 次左右。


从网页上 rebuild 没问题,所以这两天的更新我会用这个方法解决。

CDN 支持?

有没有必要?有多大必要?支持的方法?费用?会不会造成麻烦?

统计下载数据

记录包括下载信息,以备日后使用。现在能想到应用包括:

  • 每个包的下载量
  • Emacs 的版本信息。等到 Emacs 25 之后,我们就能统计出用户使用 Emacs 的版本情况了。

evil-visual-mark-mode 安装报错

windows 平台下,emacs 25.1。

spacemacs 使用的 develop branch, 生成 .spacemacs 后退出,关闭 https: dotspacemacs-elpa-https nil 且修改镜像为:

(setq configuration-layer--elpa-archives
            '(("melpa-cn" . "http://elpa.zilongshanren.com/melpa/")
              ("org-cn"   . "http://elpa.zilongshanren.com/org/")
              ("gnu-cn"   . "http://elpa.zilongshanren.com/gnu/")))

删除 ~/.emacs.d/.cache~/.emacs.d/epla 后重启 emacs, 安装过程出现 :

An error occurred while installing evil-visual-mark-mode ...

截图如下
evil-visual-mark-mode error

后续退出 emacs 再次进入, %Message% 中也没有报错:

Loading c:/Users/15050107/.emacs.d/core/core-load-paths.el (source)...done
Loading c:/Users/15050107/.spacemacs...done
Setting the font...
PNG warning: Interlace handling should be turned on when using png_read_image
Open the quickhelp.
Loading c:/Users/15050107/.emacs.d/layers/+completion/helm/packages.el (source)...done
Loading c:/Users/15050107/.emacs.d/layers/+lang/emacs-lisp/packages.el (source)...done
Loading c:/Users/15050107/.emacs.d/layers/+distributions/spacemacs/layers.el (source)...
Loading c:/Users/15050107/.emacs.d/layers/+distributions/spacemacs-base/packages.el (source)...done
Loading c:/Users/15050107/.emacs.d/layers/+spacemacs/spacemacs-completion/packages.el (source)...done
Loading c:/Users/15050107/.emacs.d/layers/+spacemacs/spacemacs-layouts/packages.el (source)...done
Loading c:/Users/15050107/.emacs.d/layers/+spacemacs/spacemacs-editing/packages.el (source)...done
Loading c:/Users/15050107/.emacs.d/layers/+spacemacs/spacemacs-editing-visual/packages.el (source)...done
Loading c:/Users/15050107/.emacs.d/layers/+spacemacs/spacemacs-evil/packages.el (source)...done
Loading c:/Users/15050107/.emacs.d/layers/+spacemacs/spacemacs-language/packages.el (source)...done
Loading c:/Users/15050107/.emacs.d/layers/+spacemacs/spacemacs-misc/packages.el (source)...done
Loading c:/Users/15050107/.emacs.d/layers/+spacemacs/spacemacs-purpose/packages.el (source)...done
Loading c:/Users/15050107/.emacs.d/layers/+spacemacs/spacemacs-ui/packages.el (source)...done
Loading c:/Users/15050107/.emacs.d/layers/+spacemacs/spacemacs-ui-visual/packages.el (source)...done
Loading c:/Users/15050107/.emacs.d/layers/+spacemacs/spacemacs-org/packages.el (source)...done
Loading c:/Users/15050107/.emacs.d/layers/+distributions/spacemacs/layers.el (source)...done
Loading c:/Users/15050107/.emacs.d/layers/+distributions/spacemacs-bootstrap/packages.el (source)...done
Loading c:/Users/15050107/.emacs.d/layers/+distributions/spacemacs-bootstrap/funcs.el (source)...done
Loading c:/Users/15050107/.emacs.d/layers/+spacemacs/spacemacs-ui-visual/funcs.el (source)...done
Loading c:/Users/15050107/.emacs.d/layers/+spacemacs/spacemacs-purpose/funcs.el (source)...done
Loading c:/Users/15050107/.emacs.d/layers/+spacemacs/spacemacs-evil/funcs.el (source)...done
Loading c:/Users/15050107/.emacs.d/layers/+spacemacs/spacemacs-editing/funcs.el (source)...done
Loading c:/Users/15050107/.emacs.d/layers/+spacemacs/spacemacs-layouts/funcs.el (source)...done
Loading c:/Users/15050107/.emacs.d/layers/+spacemacs/spacemacs-completion/funcs.el (source)...done
Loading c:/Users/15050107/.emacs.d/layers/+distributions/spacemacs-base/funcs.el (source)...done
Loading c:/Users/15050107/.emacs.d/layers/+completion/helm/funcs.el (source)...done
Loading c:/Users/15050107/.emacs.d/layers/+lang/emacs-lisp/funcs.el (source)...done
Loading c:/Users/15050107/.emacs.d/layers/+distributions/spacemacs-bootstrap/config.el (source)...done
Loading c:/Users/15050107/.emacs.d/layers/+spacemacs/spacemacs-ui-visual/config.el (source)...done
Loading c:/Users/15050107/.emacs.d/layers/+spacemacs/spacemacs-layouts/config.el (source)...done
Loading c:/Users/15050107/.emacs.d/layers/+spacemacs/spacemacs-completion/config.el (source)...done
Loading c:/Users/15050107/.emacs.d/layers/+distributions/spacemacs-base/config.el (source)...done
Loading c:/Users/15050107/.emacs.d/layers/+lang/emacs-lisp/config.el (source)...done
Loading c:/Users/15050107/.emacs.d/layers/auto-layer.el (source)...done
c:/Users/15050107/.emacs.d/layers/+spacemacs/spacemacs-purpose/local/spacemacs-purpose-popwin/spacemacs-purpose-popwin.el: Obsolete name arg "pupo" to constructor purpose-conf
Loading c:/Users/15050107/.emacs.d/layers/+distributions/spacemacs-base/keybindings.el (source)...done
Loading c:/Users/15050107/.emacs.d/.cache/spacemacs-buffer.el (source)...done
Spacemacs is ready.
Skipping check for new version (reason: dotfile)
Loading c:/Users/15050107/.emacs.d/.cache/recentf...done
Open the quickhelp.
mwheel-scroll: Beginning of buffer [6 times]
evil-line-move: End of buffer

请问这个模块功能是否正常?我如何确定 镜像安装的模块是否正确?

同步版本有些落后

目前 emacs-china 的 elpa 版本有些落后于 melpa.

比如 ivy, 最新的包是 11.18的,而 emacs-china上面有11.11和11.18 两个版本,我调用 package-refresh-contentspackages-list-packages 只能更新到 11.11版本。

切换回 melpa 正常

@xuchunyang

添加emacs-chine源后还会使用elpa.gnu.org

新拉取的spacemacs, 在user-init里设置源

(defun dotspacemacs/user-init ()
  "Initialization function for user code.
It is called immediately after `dotspacemacs/init', before layer configuration
executes.
 This function is mostly useful for variables that need to be set
before packages are loaded. If you are unsure, you should try in setting them in
`dotspacemacs/user-config' first."

    (setq configuration-layer--elpa-archives
      '(("melpa-cn" . "http://elpa.emacs-china.org/melpa/")
        ("org-cn"   . "http://elpa.emacs-china.org/org/")
        ("gnu-cn"   . "http://elpa.emacs-china.org/gnu/")))
  )

第一次打开emacs使用的是emacs-china源
但是之后打开emacs添加layers连接的就是elpa.gnu.org了
删除 ~/.emacs.d/.cache ~/.emacs.d/elpa之后, 再次打开emacs才会使用emacs-china安装好layers.
这是我使用方式不对还是有bug啊?

记录并显示 Last Update 的日期和时间

7 个 ELPA 中目前 Melpa[-stable]用 Rsync 更新,其余的在 Travis-CI 上用 HTTP 更新,后者更新周期长,暂取 Travs-CI 完成更新时的时间点,虽然这不是 100% 准确的。

虽然每个 ELPA 准确的完成更新的时间点都能获取,但静态网页不方便显示它们。

用什么方法搭建 ?

考虑到 @codefalling 似乎已经搭建好了一个镜像,现在有必要讨论下如何搭建了。

我的方案是用直接用一个国内 VPS 托管包文件,如果有必要,现在一台境外 VPS 下载好同步回国内的 VPS。

这么做的优点是:

  • 完全独立,不完全依附任何商家,从而使得稳定性和速度在我们的控制之中。
  • 使用单独的服务器能记录各种统计数据 #6

缺点是:

  • 不能用 emacs-china.org 这个域名(我不是太介意这个问题。因为这不是我们所能控制的,假如这造成了不方便的话,我也希望把这不方便传递给每一个使用该镜像站的用户)

@codefalling 你能不能也介绍下你的方案?

Watch Watching

UPDATE 2016/05/16:Travis-CI 支持了 Cron,但是使用这项功能需要申请,昨晚已申请,目前还在等回复。另外,Travis-CI 也支持用 API 触发 build,如果之前的申请未通过的话,会采取 API 的方式。总而言之,下面的问题将不复存在。

Watch 这个 Repo 请小心!

Emacs China ELPA 镜像的同步工作利用 Travis-CI 完成,由于 Travis-CI 的 rebuild 只能通过 commit 启动,commit-for-travis-ci 分支会每四个小时自动 commit 一次。因此 Watch 这个 Repo 会导致你的 Dashboard 变得非常混乱。

以后有闲置的国外 VPS 的话,也会考虑替代 Travis-CI。

公告:支持 rsync

如果有个人或组织也想搭建镜像的话,除了从上游 ELPA 下载这种方法之外,也可以直接 mirror 本镜像:

rsync -rltpHS --delete-excluded rsync://elpa.zilongshanren.com/elpa/ /your/dir/

本镜像目前收录的 5 个 常见的ELPA,共占 536M

50M  /elpa/gnu
63M  /elpa/marmalade
282M /elpa/melpa
129M /elpa/melpa-stable
13M /elpa/org

测试阶段

镜像进入测试阶段,该阶段结束的条件是:有一定数量用户正常地使用一段时间。

Elpa TLS failed

Contacting host: elpa.zilongshanren.com:443
Opening TLS connection to `elpa.zilongshanren.com'...
Opening TLS connection with `gnutls-cli --insecure -p 443 elpa.zilongshanren.com'...failed
Opening TLS connection with `gnutls-cli --insecure -p 443 elpa.zilongshanren.com --protocols ssl3'...failed
Opening TLS connection with `openssl s_client -connect elpa.zilongshanren.com:443 -no_ssl2 -ign_eof'...failed
Opening TLS connection to `elpa.zilongshanren.com'...failed
Failed to download `gnu' archive.

Failed to download ...

Failed to download gnu' archive. Failed to download melpa' archive.

Windows 10 + Emacs 24.5.1 (i686-pc-mingw32)

Rsync 服务无法使用

https://status.emacs-china.org/778801282 提示 Rsync 服务从今天凌晨起无法连接,我登入服务器确认了 Rsync daemon 正常运行

root@AY1309092152572985dfZ:~#  pgrep rsync | xargs ps -f -p
UID        PID  PPID  C STIME TTY          TIME CMD
root     19463     1  0 11:38 ?        00:00:00 /usr/bin/rsync --no-detach --daemon --config /etc/rsyncd.conf
root@AY1309092152572985dfZ:~# rsync --list-only rsync://localhost/elpa/
drwxr-xr-x          4,096 2018/03/20 23:26:42 .
drwxrwxr-x          4,096 2016/11/25 11:43:48 SC
drwxr-xr-x        114,688 2018/07/21 08:51:30 emacswiki
drwxrwxr-x         36,864 2018/07/21 08:07:01 gnu
drwxrwxr-x         61,440 2018/07/21 08:07:35 marmalade
drwxr-xr-x        184,320 2018/07/15 08:45:06 melpa-stable
drwxr-xr-x        458,752 2018/07/21 08:19:36 melpa
drwxrwxr-x          4,096 2018/07/21 08:06:52 org
drwxrwxr-x          4,096 2018/04/04 16:06:35 sunrise-commander
drwxrwxr-x         12,288 2018/07/21 08:07:20 user42
root@AY1309092152572985dfZ:~#

但是从外网却依旧无法访问,下面两个命令均卡住

~ $ rsync -av --list-only rsync://elpa.emacs-china.org/elpa/
~ $ nc -zv elpa.emacs-china.org 873

不知为何。暂时先等到明天,或许是阿里云的问题。

访问 elpa.zilongshanren/melpa 下面的文件,报 403 的错误

我检查了一下这个目录下面的文件,大部分的文件权限都是正确的,但是有部分文件的权限不正确。

不清楚这个是否会影响安装,不过我目前还没有遇到不能安装的问题。

@xuchunyang 是否有必要在同步文件之后,统一给这些文件设置一个文件权限?

http://elpa.zilongshanren.com/sc/ 大小写的问题

sc是小写的,但是在 vps 上面是大写的,linux是区分大小写的,应该统一一下,否则会 404.

@xuchunyang 另外,我把nginx加上了 autoindex,这样点击 elpa 链接的时候不再是 403 了,而是一个文件列表,这样看起来更像是一个镜像站点了。

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.