OPAM: How to reinstall a package locally without reloading?

I want to locally recompile / reinstall a package that has already been downloaded through OPAM but not downloaded again.

opam reinstallseems to always reload the package, and I see no way to disable it.

Here are a few reasons you might want to perform this local reinstallation:

  • Local sources have been changed, and the person wants to apply the changes without having to manually restore everything from the source code;
  • There is currently no internet connection, or it is slow / limited.
+4
source share
1 answer

opam . , , .

, pin . - opam. , . opam-admin.

- , pin , , .

( opam 1.2 )

 opam source lwt.2.4.8
 opam pin add lwt lwt.2.4.8

lwt , , . lwt.2.4.8 opam. opam lwt.

+4

All Articles