Goal: quickly install OCaml, Core, Async, and other JS libraries.
Plan: do it once, and then make a .deb
that can be applied to other boxes.
It would be nicer if I could do the Debian packaging properly, but for now this is a quick fix.
Problems / warnings / notes
- I delete the opam repository; so you need to
opam update
before it's usable again. - I add a sudo rule to preserve the
OPAMROOT
environment variable.sudo
purges environment variables in the name of security. This should only be a problem if you have exotic sudo restrictions, and you will want to check this. - Includes
git-patdiff-wrapper
for free! (For use withGIT_EXTERNAL_DIFF
)
Usage
- Run the script as
root
on a clean Debian/Ubuntu VM/chroot of the version that you are targeting. - Copy
ocaml-bundle.deb
,patdiff.deb
, andpatdiff
from/
or/root
, and nuke the VM/chroot from orbit. - Apply debs to other machines. It has some dependencies (
build-essential
,libpcre3-dev
); resolve these via your favourite means (dpkg -i x.deb; apt-get install -f
works).