redguardtoo / elpa-mirror

Create local emacs package repository. 15 seconds to install 115 packages.
315 stars 55 forks source link

[question] works for melpa? #14

Closed ninrod closed 8 years ago

ninrod commented 8 years ago

Hi @redguardtoo and thanks for this.

I'm looking for a way to download the whole MELPA repo to a local folder. Is there a way to do this with your solution?

thanks in advance.

redguardtoo commented 8 years ago

Melpa has some rsync service

My way is simpler and more practical though.

Only packages actually used is included in local repo. So repo size is much smaller. You control exact version of every package.

ninrod commented 8 years ago

Ok. Please see if I understood correctly. I want to use your solution for my current spacemacs configuration through melpa. For that I have to:

(premise: I have access to github.com clones behind corp firewall)

  1. while at home, I put your elpa-mirror.el in a loadpath function somewhere in my ~/.spacemacs/init.el
  2. issue M-x elpamr-create-mirror-for-installed,
  3. the packages will be in a ~/myelpa folder
  4. I create a git repo with that folder, push that to github
  5. in my workplace, I clone the github repo to ~/myelpa on my work machine behind corp firewall
  6. change my ~/.spacemacs/init.el to search for packages inside the ~/myelpa cloned repo.
  7. ???
  8. profit!

Is that the hang of it?

thanks in advance

redguardtoo commented 8 years ago

Yes.