The ocamlfind command can install and remove packages. For example, to install a package p containing the files META, m1.cmi, m2.cmi, p.cma, run
ocamlfind install p META m1.cmi m2.cmi p.cmaThis installs the files into the default location for new packages (set in ocamlfind.conf). If you have files that are not always built, add these after the -optional switch:
ocamlfind install p META m1.cmi m2.cmi p.cma -optional p.cmxa p.cmxsTo remove the package, run
ocamlfind remove pNote that every package must have a META file, it is not possible to omit it.