How to configure quicklisp for offline use?
Asked Answered
I

2

7

I'm about to go on a long trip to remote places with no internet access, and I want to get some lisp programming done. I thought it might be wise to

  1. download the entire quicklisp archive including all its dependencies
  2. configure quicklisp itself to quickload packages from the local copy

because it will be better for me to have something and not need it then to need it and not have it when I am out in the wilds and unable to connect to the internet by any means.

I'd be grateful for advice on how to do both things or on where to pinpoint documentation that would instruct me how to do both things.

There is plenty of room on my hard drive for many copies of the entire thing (the age of scarce disk space is long gone).

Inhalation answered 7/4, 2016 at 13:31 Comment(0)
J
12

Here is what I use:

(in-package :ql-dist-user)
(map nil 'ensure-installed (provided-releases (dist "quicklisp")))

I might add a shortcut for this sometime in the future. It's a common thing to want to do.

Java answered 7/4, 2016 at 14:52 Comment(0)
F
3

Perhaps by loading all the packages that are available:

(mapc (lambda (system) 
        (let ((name (slot-value system 'QL-DIST:NAME)))
          (ql:quickload name))) 
      (ql:system-list))

Without network all of those packages are available:

1]> (ql:quickload "1am")
To load "1am":
  Load 1 ASDF system:
    1am
; Loading "1am"
Fredfreda answered 7/4, 2016 at 14:14 Comment(2)
Not a great option, as not all projects can be loaded at once.Java
but it gives me enough clues to work up a corrected solution.Inhalation

© 2022 - 2024 — McMap. All rights reserved.