How do I check the ocaml documentation when offline?

Debian

Binary packages of opam are available for the stable, testing and unstable distributions, from the official repositories. You should be set with:

apt-get install opam