Skip to content

pkg: installation of packages that can be used system-wide #12107

@shonfeder

Description

@shonfeder

AFAIU, we intend dune pkg to eventually be a self-sufficient alternative to opam for the package management needs of ocaml users and developers.

As an ocaml user, I want to

  • Fire up the ocaml top level in random terminals to try out bits of code.
  • Install generally useful ocaml software and use it on my system for different tasks. E.g., unison, atd, or camels.

And as an ocaml developer, I want to

  • Write useful utilities that others can install easily thru our default package manager, without having to create packages for every distribution my intended users happen to be using.

AFAIK, there is currently no way to do this with dune pkg. So if I want to, e.g., run utop, I either have to CD into some project using dune pkg or -- using the opam I thankfully have in stalled -- run opam exec utop.

Every package manager I have used and am aware of enables some way of installing packages that allows them to be used system-wide, and I assume we will want and need this functionality in dune pkg as well.

I have discussed this with a few people over the last while, including @emillon, @maiste, and @Sudha247, but I was not able to find an existing issues to track this need.

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions