HAL will be down for maintenance from Friday, June 10 at 4pm through Monday, June 13 at 9am. More information
Skip to Main content Skip to Navigation
Conference papers

Using Preferences to Tame your Package Manager

Abstract : Determining whether some components can be installed on a system is a complex problem: not only it is NP-complete in the worst case, but there can also be exponentially many solutions to it. Ordinary package managers use ad-hoc heuristics to solve this installation problem and choose a particular solution, making extremely difficult to change or sidestep these heuristics when the result is not the one we expect. When software repositories become complex enough, one gets vastly superior results by delegating dependency handling to a specialised solver, and use optimisation functions (or preferences) to control the class of solutions that are found. The opam package manager relies on the CUDF pivot format, which allows OCaml users that have a CUDF-compliant solver on their machine to reap the benefits of preferences-based dependency resolution. Thanks to the solver farm provided by Irill, these benefits are now extended to the OCaml community at large. In this talk we will present the preferences language and explain how to use it.
Complete list of metadata

Cited literature [3 references]  Display  Hide  Download

Contributor : Fabrice Le Fessant Connect in order to contact the contributor
Submitted on : Monday, December 8, 2014 - 7:17:04 PM
Last modification on : Friday, February 4, 2022 - 3:10:16 AM
Long-term archiving on: : Saturday, April 15, 2017 - 4:04:01 AM


Files produced by the author(s)


  • HAL Id : hal-01091177, version 1



Pietro Abate, Roberto Di Cosmo, Louis Gesbert, Fabrice Le Fessant, Stefano Zacchiroli. Using Preferences to Tame your Package Manager. OCaml 2014, Sep 2014, Goteborg, Sweden. ⟨hal-01091177⟩



Record views


Files downloads