Dependency Solving Is Still Hard, but We Are Getting Better at It
Paper · 2020 · Pietro Abate, Roberto Di Cosmo, Georgios Gousios et al.
Summary
Installing software can require changing packages that the user never asked to touch. A new package may need a library within a particular version range, while an installed application needs a different release of that library. Each candidate can bring requirements of its own. A package manager has to find a set of versions that satisfies those requirements and the installation request together. The paper revisits the finding that even a simple package system can make this decision NP-complete. It is enough to offer several versions of a package and allow only one to be installed in the same environment. Declared conflicts add another way for otherwise plausible choices to rule each other out.
The authors revisit a proposal from the Mancoosi research project. They wanted package managers to let users describe richer requirements and preferences, then use specialist solvers to find a valid plan and choose among valid alternatives. They also proposed sharing those solvers across package managers. Their Common Upgradeability Description Format, or CUDF, gives a package manager a way to describe the available packages, the installed state and the user's request. A compatible solver can work from that description and return a result for the package manager to turn into an installation or upgrade plan. The MISC competition showed that solvers built with different techniques could use this common format.
The paper surveys major package managers for programming languages alongside tools from ecosystems such as Debian, RedHat and Eclipse. It compares the versions and requirements each tool can describe, how it handles unsuccessful resolution, and whether it can reliably find a result that respects the constraints. It also asks whether users can rank acceptable results through their own optimization criteria. The survey finds that specialist solving techniques, including Boolean satisfiability, have gained ground. Eclipse, SUSE and RedHat illustrate that progress. General reuse through a shared interface has spread much less widely. Opam adopts the architecture most fully, while Debian's apt-get makes an external solver available as an option.
The authors trace that uneven adoption to the cost of translating ecosystem-specific rules, the responsibility of relying on an external component, and the difficulty of coordinating communities that manage their tools independently. They also consider changes that affect what dependency solving must do. Containers and separate environments let incompatible packages coexist in different namespaces. Finer-grained information about how programs call into their dependencies could help establish which installed libraries actually matter to a security or licensing question. The census documents progress in finding valid package configurations, while the outlook identifies questions that a configuration alone cannot answer.
Deep dive: Dependency Solving Is Still Hard, but We Are Getting Better at It
A survey of package managers examines why dependency solving is hard, where specialist solvers have spread, and why few managers share them. · about 33 minutes to read
The problem and its context
The decision behind an installation
A package manager keeps track of software that is available and software that is already installed. It lets people request changes to that state without having to specify every artifact involved. Installing a library, removing a program or upgrading an application can all require further decisions about packages that the request never names. Dependency solving is the part of package management that makes those decisions. The solver has to work with both the software already present and the alternatives it can obtain.
The paper uses a request to install the aiohttp library to illustrate the input to this process. The name identifies what the user wants. The available releases tell the solver what it could choose, and the installed state tells it what would have to change. Requirements attached to a candidate release may lead to further packages. The request can also carry expectations about the breadth of the change. A user who wants only essential additions is asking for a different outcome from a user who wants recommended packages included as well. Those expectations can matter even when both outcomes would support the requested library.
The result has an operational side. The package manager must download, remove and install the appropriate artifacts. The paper describes an upgrade plan as a collection of actions with ordering constraints. An artifact must be downloaded before the action that installs it from that download. Independent actions can have some flexibility in their order. The actions eventually bring the machine to the selected package state. Solving therefore concerns the destination of an upgrade, while carrying out the upgrade also requires a sequence of feasible operations on the machine.
The installed state can change the problem substantially. A request made against an empty environment has no existing software to accommodate. The same request on a working system may interact with libraries that other packages use, and a change to a shared library may force decisions about those packages. Existing software also gives the solver something to preserve if the user values stability. Knowing that a release is available is only the beginning of deciding whether and how it should be used.
Why following the dependency tree can fail
A simple way to approach an installation is to start at the requested package, follow its requirements and collect what those requirements name. That works as a way to discover relevant packages. The difficulty comes when a requirement admits alternatives and the suitability of an alternative depends on decisions elsewhere. A choice can appear acceptable when it is first encountered, then prevent the solver from satisfying a requirement reached much later. The solver may have to revisit an early decision and investigate the consequences of a different release.
The version restriction highlighted in the paper is enough to create this interaction. Imagine an application that permits a range of library releases. A different application in the same environment needs a particular release inside that range. If the package manager allows only one installed release, the choice for either application determines what the other one gets. The question is whether the available releases meet all the requirements at once. If a candidate release itself needs another package with several alternatives, establishing that it works can require yet more choices. Multiple paths through what looks like a tree can converge on the same decision.
An explicitly declared conflict also constrains the whole configuration. The presence of a package can rule out another package even when neither package supplies a requirement of the other. Following prerequisite links from the request will show what a branch needs. The solver still has to check whether the packages selected across all branches can coexist. A local decision that fits every requirement examined so far can fail that broader check.
The paper dates the NP-completeness result for Debian-style dependencies to 2006. Those dependencies can express conditions on versions, combinations of requirements, alternatives and conflicts. They can also refer to virtual packages, through which a requirement can be satisfied by a package that provides the named capability. The ability to choose a provider introduces another kind of decision. The authors explain that Debian-style dependency solving can be expressed as a Boolean satisfiability problem, and that satisfiability can in turn be expressed as a Debian-style dependency problem.
Boolean satisfiability, commonly called SAT, asks whether truth values can be assigned so that a Boolean expression holds. In package solving, a truth value can represent whether a particular release is selected. A requirement constrains the combinations of selections that are allowed, as does a conflict. The equivalence described in the paper explains both the theoretical difficulty and the relevance of SAT solvers. The NP-completeness result concerns the general question of whether a valid configuration exists. A particular installation can still be easy when its constraints leave little room for competing choices.
The later result discussed by the authors narrows what is needed for the difficulty to arise. Boolean alternatives, virtual packages and explicit inter-package conflicts make Debian's language expressive. A system can dispense with those features and still face NP-completeness if several releases are available and releases of the same package exclude one another. The constraint that gives every package name a single installed version couples decisions across the environment. A compact dependency language can therefore conceal much of the search that an implementation has to be prepared to do.
Valid solutions and choices among them
Package managers have to answer several questions that can look identical from the user's point of view. Correctness asks whether the configurations returned as solutions satisfy the package constraints. Completeness asks whether the solver can find a valid one whenever such a configuration exists. A manager can be correct and incomplete if it refuses requests whenever its chosen search strategy reaches a dead end. An error in that case tells the user that resolution failed. The same request may be feasible under a different assignment of versions.
A solver also has to interpret what counts as a desirable resolution. The paper uses the game wesnoth to explain the minimum-install problem. Several sets of additional packages might make the game installable. A user may prefer the set that adds the fewest packages. That criterion requires comparing successful outcomes. A solver that finds one valid configuration has answered the feasibility question, but the quality of its choice depends on what the other feasible configurations would require.
Different requests can make different criteria relevant. The smallest set of additions may involve replacing libraries that a user would prefer to keep. A policy that protects installed packages can instead choose a result with more additional software. The paper distinguishes preferences of this kind from the dependency requirements that determine validity. A package manager may apply a built-in policy every time, or it may give the user a way to specify the priorities of a particular operation. The latter requires a way to communicate those priorities to the solver as well as a solver that can optimize for them.
This distinction also matters when an ecosystem relaxes requirements. Selecting an available release after a version constraint fails can let an installation proceed. Such a result must be understood under the fallback policy the manager applied. It does not establish that the original constraint was satisfiable. A failure and a fallback outcome both call for care when interpreting what the resolver actually established.
Why the authors revisited the architecture
The paper places the question in the expansion of package management. Package managers appeared in the early 90s and were initially associated with UNIX-like software distributions. Their role broadened to managing libraries in development stacks and delivering applications to end users. By the time of the survey, libraries.io listed more than 30 package managers. That number describes the discovery source cited by the authors. The survey itself drew on major entries from it and added systems from other ecosystems.
Against that growth, the authors recall observations from 2005–2015 that prominent package managers could miss feasible installations and offer few ways for users to express preferences. For a project that implements a resolver from scratch, it can be tempting to build around a traversal that handles common dependency patterns. The examples above explain why a traversal may be insufficient once choices have to be undone and reconsidered. Implementing the package format, repository access and installation steps already gives each ecosystem a substantial task, even before it takes on general constraint solving.
Mancoosi research proposed that the search for a feasible or preferred configuration should have a clear interface of its own. The authors saw an opportunity to use methods developed for general constraint and optimization problems. A package manager would keep responsibility for the details of its ecosystem and adapt those details to a shared problem description. A solver could then serve several ecosystems, or one ecosystem could try several solvers. The paper revisits both parts of that proposal because adopting a specialist technique and adopting a shared interface are different decisions.
The method, step by step
From package information to a solving problem
The architecture starts with information that the package manager already uses. There is an installed state, a universe of packages available for consideration, a user request and a policy for choosing among possible results. The universe matters because a requirement may name a release or provider outside the currently installed set. It also determines the scope of an answer. A solver can search among the candidates represented in the problem it receives.
Package names and versions are only part of the input. The description must preserve which packages are required together, which can satisfy an alternative requirement, and which combinations are forbidden. The current state is needed to distinguish a package that can be left in place from one that must be added or removed. The request identifies the operation that the prospective state has to accomplish. Preferences determine which legitimate configuration is favored if the solver can find several.
The Common Upgradeability Description Format gives the package manager and solver a shared representation for this exchange. In the authors' design, the package manager converts its own representation into an upgrade problem in CUDF. A compatible solver receives the problem and returns a solution in the same format. The package manager translates the result back to its own representation and uses it to plan the operations needed on the machine. Fig. 1 presents CUDF as the common language for the problem, while Fig. 2 places that exchange inside a modular package manager.
How a package request passes through CUDF
The steps in order.
The essential platform-specific work lies at the boundary. A package manager has to interpret its own version syntax and dependency declarations, and it has to understand what the returned selections mean for its own installed state. A solver can concentrate on deciding which combinations of packages work under the translated rules. The same specialization also lets different solving engines operate behind the shared representation. In either direction the value of the architecture depends on preserving the meaning of the package manager's rules when they cross that boundary.
Reading the paper's constraint examples
A dependency can test both the identity of a candidate and the candidate's version. The paper illustrates such a test with a Debian-style version predicate.
python3-aiohttp >= 3.0.1
python3-aiohttp is the package name. >= means that the release must compare greater than or equal to the specified lower bound, using the ecosystem's version ordering. 3.0.1 is that bound. The periods separate parts of the version identifier. The predicate describes which releases meet this individual requirement. Other dependencies and conflicts still determine whether any of those releases can take part in the final configuration.
A separate census example illustrates a range written using a wildcard.
>= 4.3.*
>= is the comparison operator in the example. 4.3 gives the major and minor parts of the example artifact's version, the periods separate version components, and * stands for the variable patch part. The authors use the expression to discuss requirements that can refer to patch releases of an artifact version. It illustrates the kind of version syntax the survey records. The target package manager determines the full interpretation of a range and any permitted combinations with other operators.
The two expressions help make the translation problem concrete. The first belongs to a named package and sets a lower limit in that ecosystem's ordering. The other uses a version pattern. A package manager that allows several distinct intervals may have to encode precisely which releases belong to the allowed set. Putting their version labels in the same textual field would be insufficient if the two sides interpreted ordering, wildcards or alternatives differently. The adapter has to convey the constraint that the spelling denotes.
Finding a feasible configuration and ranking it
The paper discusses SAT as one way to express the search. Associate the decision to install a release with a Boolean choice. If selecting a release requires a compatible provider, its selection has to be accompanied by at least one of the allowed providers. If two releases are mutually exclusive, the solver must reject a selection containing both. A request constrains the final choice as well. Finding a satisfying assignment means finding a combination of choices that obeys all these conditions together.
The review also names techniques that address preferences. Max-SAT brings an optimization objective to a problem expressed in Boolean terms. Pseudo Boolean Optimization, or PBO, supports optimization using arithmetic expressions over Boolean choices. Mixed Integer Linear Programming, or MILP, works with linear expressions and can require variables to take integer values. Answer Set Programming, or ASP, expresses a problem as rules whose solutions describe acceptable selections. The survey treats these as different technical routes to package solving. A manager using CUDF need not expose the engine's internal representation to express its request.
Consider the paper's example of installing Merlin through Opam. Merlin is a development tool, and the scenario assumes the user wants to retain libraries that may be needed to build a project. The preference expression in the example conveys how the solver should judge changes to the existing machine.
-changed,-removed
The minus sign before changed asks to minimize the changes counted by that criterion. The minus sign before removed asks to minimize the removals counted by the latter criterion. The comma separates the criteria, which the example presents with changes before removals. The package request itself is separate from this expression. Installing Merlin is the condition that a successful result has to meet. The criteria are used to compare results that meet it.
An adequate solution description must preserve that distinction. A valid installation that would remove existing libraries can be less desirable under the user's policy, even if the original dependency rules permit all the removals. Conversely, a configuration that makes very few changes has no value as a solution if it cannot install the requested tool. Extra solver expressivity is useful here because the user can state what matters without describing every allowed package change by hand.
How MISC exercised the interface
The authors present MISC as a practical demonstration of the shared representation. The competition ran for 3 yearly editions from 2010 to 2012. Participants took problems in CUDF and returned their solutions in CUDF. That arrangement gave different engines a common way to receive concrete instances of the problem. It also demonstrated that the exchange format could outlast the choice of any particular solving technique.
The competition drew on two sources of problems. Package-manager users submitted instances they encountered, supplying examples rooted in actual changes people tried to make. Other instances were generated randomly from real package repositories. Repository-derived generation meant that generated problems still drew on real package information. The authors report that the input data used for the competition were released publicly. The paper's survey turns to a different question from the competition. It asks which capabilities and architectural choices made their way into package managers.
The participants make the separation tangible. Apt-pbo uses Pseudo Boolean Optimization, while aspcud uses Answer Set Programming. The paper lists inesc as a Max-SAT solver and p2cudf as a PBO solver using Sat4j. It also lists ucl, which uses graph constraints, and unsa, which uses Mixed Integer Linear Programming through CPLEX. The examples establish the range of approaches that could take part in the same exchange. A compatible problem description leaves room for differences in how an engine searches and optimizes.
How the authors conducted the census
For the retrospective, the authors selected major language-specific package managers listed by libraries.io along with tools from notable free and open-source distributions and platforms. The comparison concerns the tools' capabilities. The authors examined how each ecosystem identifies versions and artifacts, what it lets developers express in dependencies, how it resolves those dependencies, and what it does when strict resolution fails. This organizes packages with very different distribution practices into a common feature matrix.
Version identification and distribution come first because they tell the solver what it is choosing among. The paper contrasts hierarchical version schemes with Debian's version specification and with names such as free-form strings or Git tags that need not express an ordering. It also records whether release artifacts come from archives or directly from a repository, and whether the versioned unit is a package or can be a branch. Those choices affect which objects a requirement can name and what it means to compare their versions.
The authors record version locking and dependency qualifiers as separate dimensions. Locking preserves a particular resolution so that a subsequent build can select the same versions. Qualifiers let a choice of build configuration affect which requirements are active. A test runner used only when tests run is the paper's example. The first feature preserves the result of a choice, while the second determines which problem needs to be solved. A package manager can handle either task well and still have difficulty with the other.
The census then looks at the operators for describing acceptable versions. Greater-than and less-than comparisons, ranges, and logical combinations can make one declaration cover many releases. The authors record modifiers that let a project accept future patch versions or future minor versions within a stated policy. A modifier can save the developer from changing the manifest for every eligible release. Its effect is to inform the candidate set whenever the resolver runs with new releases available.
The final group of dimensions concerns the resolution itself. The authors classify tools by correctness, completeness and support for user preferences. They also examine behavior when no release meets a dependency requirement and when multiple versions of the same artifact appear in the dependency closure. The closure includes indirect requirements reached through the packages the original request brings in. Recording these cases separately lets the survey distinguish a resolver's guarantees from the practical ways a package manager handles circumstances in which its normal rules do not produce an installation.
Experiments and results
What the census measured
The main evidence comes from the feature census. Its units are package managers and the capabilities recorded for them. The comparison includes tools for language ecosystems, such as npm, Opam, Cargo and Maven. It also includes package managers connected with the Debian, RedHat and Eclipse platforms. The paper uses the earlier observations about incomplete, ad hoc resolution as historical context. The direct comparison in the census is between the capabilities of the tools the authors surveyed.
There is no common set of upgrade requests on which all the surveyed package managers receive a score. The dimensions instead support judgments about specific properties. A tool may accept expressive ranges, record a reproducible resolution and still use a limited search procedure. Another may have a complete solver and provide little control over which valid answer it chooses. The matrix's unknown entries also matter. They preserve a distinction between a property the authors could classify and one for which the matrix does not assert an answer.
The earlier MISC data serve a different purpose in the paper. Those data are package-solving instances drawn from submissions and repository-based generation. MISC's 3 editions, held from 2010 to 2012, show that several approaches could participate using a common input and output format. The paper does not report a score from those instances for each manager in the census. The competition demonstrates that the interface can be used in practice, while the survey documents where related techniques or interfaces were adopted.
The numeric comparison below dates descriptions of named solver components. It compares documentary timing, since the paper reports the systems and their techniques without a shared performance metric. The star marks the latest description among the entries.
Publication year of named solver descriptions cited in the paper
The aspcud description is the most recent among these solver descriptions.
The numbers
| System or setting | Publication year |
|---|---|
| Apt-pbo | 2010 |
| Sat4j | 2010 |
| Aspcud (this paper) | 2011 |
The years refer respectively to the cited descriptions of the apt-pbo dependency solver, the Sat4j library and the aspcud configuration tool. Sat4j is a library that appears in the paper's account of dependency solving, including in the Eclipse stack. Apt-pbo and aspcud are examples of CUDF solvers. Their dates help situate the technologies available around the earlier proposal. The evidence for the paper's architectural conclusion comes from how package managers used components of this kind.
Specialist solving made headway
The clearest positive finding is that several important package managers rely on specialist engines and support correct, complete resolution. The authors point to Eclipse P2, which is built on Sat4j. They identify libsolv in the SUSE and RedHat ecosystems and trace it to the libzypp SAT solver. They also discuss Debian and Opam, which can use external CUDF solvers. These examples show that established solving techniques reached a range of platforms, including systems whose package formats and distribution practices differ.
The result matters relative to the practices that motivated the earlier proposal. A resolver based on a restricted traversal can miss a compatible choice after committing to one release too soon. A specialist engine is built to evaluate interactions across the whole set of constraints. Where the package manager's encoding preserves those constraints, the engine can bring the corresponding solving guarantees to the package task. The authors read the survey as evidence that this approach is now recognized and used in practice.
The paper identifies success in solving separately from success in giving users control of optimization. A complete resolver can find valid choices under the rules it receives. A manager can still apply one fixed policy for choosing among them. The survey's user-preference dimension looks for the ability to supply criteria, and the discussion singles out Opam for the full flexibility envisaged in the earlier proposal. Its Merlin example makes clear what that adds to a package manager that already knows how to find a valid answer.
Support for expressive declarations is likewise uneven across dimensions. A tool may let developers combine ranges or carry platform-specific qualifiers and still report an error after a search that misses an admissible assignment. A tool may also lock an installation outcome for later use regardless of whether it selected that outcome through a complete procedure. Those differences explain why the authors examine metadata, resolution and policy in separate columns. Richer input makes useful distinctions possible. The resolver has to preserve and act on them.
Reuse lagged behind the choice of technique
The paper's central comparison is between a package manager's use of a specialist solver and its adoption of a common interface for replaceable solvers. Eclipse's use of Sat4j and the use of libsolv in system package management count toward the first result. They illustrate reliance on established solving machinery. The earlier architecture sets an additional goal. It would let a package manager describe a problem in a format that multiple standalone solvers understand and accept the answer from whichever compatible solver it invokes.
The authors identify Opam as the clearest case of full adoption. Its use of CUDF gives it access to different solving engines, and its preference mechanism lets users articulate how an upgrade should affect the existing system. Debian's apt-get has part of the same architecture in practice. It gives users the option of using an external solver. The authors treat that optional route as partial adoption. The distinction between the cases concerns the role of the external interface in the package manager's design, beyond whether the interface is available at all.
The authors illustrate the value of interchangeability with Opam's move from aspcud to mccs. Performance problems had become apparent as the number of packages grew. The paper presents the switch as an instance in which an existing interface allowed the choice of solver to change. This is operational evidence that the choice can matter over the lifetime of a repository. The paper supplies no workload measurements for the switch, so the observation supports the case for being able to change solvers without quantifying the improvement.
An ecosystem that chooses a specific integrated solver can still benefit from the accumulated work behind that engine. Its maintainers can support the feature set they need with an integration that remains under their control. The tradeoff becomes visible when the chosen engine is hard to replace or a new capability has to be developed within the same integration. The census indicates that choosing a capable engine was more common than building around the possibility of routinely exchanging it.
What happens when constraints cannot all be met
The survey examines fallback behavior because the same installation request can have different meanings across package managers. A strict version range is a promise about which releases can be used to satisfy a requirement. If the repository contains no release in that range, returning an error respects the range as stated and leaves the user without the requested configuration. The authors say that this is what most of the tools do in the missing-dependency case.
The paper names Cargo and Maven as examples of tools that can proceed by choosing the latest available release when a version requirement cannot be satisfied. The chosen release is a fallback. Its availability establishes that something can be installed under the relaxed choice, while the unmet range remains relevant to what the dependency originally requested. In this part of the census, the outcome is a behavior category. It does not report how often such a fallback occurs or what fraction of resulting installations work for users.
A distinct case arises when indirect dependencies lead to several versions of the same artifact. The paper describes tools that select the version nearer the root of the dependency tree. Nearness gives the manager a way to resolve the competing selections through their position relative to the original request. That choice can affect the result independently of the order of the version labels. A manager can have a clearly defined policy for this case even if a different ecosystem treats any coexistence of those selections as an error.
Cargo illustrates another approach in the paper. It rewrites conflicting symbol names so multiple library versions can be used side by side. That changes the terms of the coexistence problem by giving the differing releases distinct symbols. A version conflict under a shared identity can therefore be handled differently from a missing candidate. The distinction matters when comparing the theoretical discussion with the tool survey. The hardness result for single-version installation assumes an exclusivity rule, and a mechanism for coexistence changes the scope of that rule.
Reading the breadth of the findings
Several different sorts of progress appear in the same matrix. Locking helps preserve a resolution. Qualifiers help match dependency declarations to the configuration in which software is used. More expressive ranges let developers choose which future releases can enter the candidate set. A complete search helps find a configuration within that set when the constraints allow one. Explicit optimization preferences help the user choose which feasible outcome to favor. Each improvement addresses a different step in the route from declaring dependencies to carrying out an installation.
There are consequently several meaningful ways to compare the surveyed tools. For a developer, support for a needed range operator may determine whether a requirement can be written accurately. For a maintainer, correctness and completeness may determine whether the package manager can reliably accept a workable request and reject a genuinely incompatible one. For a user managing a long-lived installation, the ability to limit removals may be particularly important. The paper reports features individually, leaving these priorities visible.
The authors summarize the adoption of solver technologies as substantial progress. Their strongest conclusion comes from identifiable integrations in important ecosystems and the contrast with the older reliance on ad hoc search. Their conclusion about mutualized solving is narrower. CUDF-compatible solvers existed and had been exercised in competition, yet the authors found few package managers organized fully around sharing them. The census thus supports different answers to the questions of whether the field uses better techniques and whether its tools share implementations through the proposed boundary.
What the ablations show
The paper has no ablation experiments. Its evidence comes from comparing tool capabilities, examining how packages are resolved under different policies, and interpreting the adoption of different solver architectures. These comparisons let the authors distinguish the parts of the proposal that spread from the parts that remained uncommon. They provide plausible explanations for that difference, but the tools vary in several ways at once.
The distinction between an engine and an interface
Eclipse P2 and Opam help isolate the architectural question conceptually. Both illustrate the use of specialist solving. Eclipse shows that a package manager can use an established engine within a particular integration. Opam shows how a package manager can call different engines through a shared description. The difference is visible even without running the tools on the same requests. It concerns whether using one engine commits the package manager to that integration or leaves an explicit route to another compatible engine.
Apt-get adds an intermediate case. An external solver is available, but as an option. The census would lose an important distinction if the only feature recorded were whether a manager can call a specialist solver. An optional interface can satisfy a user who needs a particular backend and is prepared to select it. Broader architectural adoption affects where the main implementation expects its solving capability to come from. The paper's discussion uses the intermediate case to explain how external solving can be present without playing the role envisioned by the original proposal.
The aspcud-to-mccs switch shows a situation in which the difference has practical consequences. Growth in a repository can bring out a performance problem that was less apparent when the ecosystem was smaller. The paper describes such a problem in Opam and treats the substitute solver as a benefit of the architecture. This observation explains one kind of value from a replaceable component. It provides no controlled comparison with the work another package manager would have needed to make a similar change.
Where translation becomes difficult
The discussion contrasts ecosystems whose package semantics resemble Debian's with ecosystems whose rules are harder to express directly in CUDF. CUDF fits the former well, according to the authors. They identify qualifiers in Eclipse P2 and non-overlapping intervals in npm as cases that require extra work in the adapter. The paper says those requirements can be supported. The absence of native support means that the adapter must take responsibility for expressing their effects.
The cases expose different demands on the translator. Qualifiers determine whether a requirement applies under the configuration in which the package is being used. Non-overlapping intervals mean that the admissible releases can have gaps, so a single span of versions could include candidates the ecosystem intended to exclude. A translation must preserve the conditions for including or excluding a candidate. A solver can otherwise find a configuration that satisfies every translated rule while failing the actual package manager's rules.
This comparison offers an explanation for limited reuse that is distinct from the quality of the available engines. A shared solver may implement search well and still be expensive to adopt when the package manager has to encode important semantics indirectly. The costs then include both the first translation and the work needed to keep it in agreement with the ecosystem. The paper identifies that burden as a probable influence on adoption. It does not assign a measured cost to the adapters or measure how much adoption would change if CUDF supported those cases directly.
Control of infrastructure and support for preferences
The authors also point to maintainers' responsibility for one of their ecosystem's central tools. An external solver is another dependency that the package manager must accommodate. An integrated engine can be attractive if it is available in the same implementation language or if maintainers want direct control of the package manager's behavior. A shared standard also requires several independent communities to coordinate, even though no individual community commands the standard's direction.
The experience of Opam suggests a potential role for direct involvement in an ecosystem. Some proponents of the earlier architecture participated in the Opam and OCaml community. The authors see that participation as important because adoption required concrete adaptations and evidence of a benefit to that community. This is an explanation based on the experience they describe. The census has no matched comparison of communities with and without that involvement.
Finally, the user-preference example explains the distinction between having a powerful backend and providing an expressive interface to users. The user who wishes to install Merlin with minimum disturbance must have a way to transmit the preference to the solver. An engine capable of minimizing changes is insufficient if the package manager always supplies a fixed objective. Opam's example shows the complete path from an expressed preference to an optimization problem. The paper offers an illustration of the capability, without measuring how frequently such preferences matter or which criteria users choose most frequently.
Limitations
Boundaries the authors identify
The authors conclude that correct, complete dependency solving has become more widespread, while complicated dependencies still cause installation problems. Separate environments can reduce conflicts by keeping incompatible packages in distinct namespaces. A single such environment can still face difficult choices among the packages that must share it. The outlook treats a renewed need for full resolution as a prediction, supported at the time by an announcement concerning pip. An announcement establishes an intention at the point the authors describe.
The authors identify limits in CUDF's native expressivity for some ecosystems. Eclipse P2 qualifiers and npm's non-overlapping ranges are their concrete cases. An adapter can account for the missing native constructs, at the cost of additional complexity. This constrains the convenience of solver reuse even if the solver itself can handle the encoded problem correctly. It also puts a condition on the modularity demonstrated by MISC. A common format saves work where the ecosystem's semantics fit or can be translated with a manageable amount of effort.
Another limit they name is the operational responsibility for external dependencies. Keeping a solver replaceable can help when a repository outgrows a particular engine, as in the Opam example. Relying on an external component also creates integration work for a critical tool. The authors explicitly consider that cost alongside the social problem of persuading several package-manager communities to rely on a common standard. They offer these as reasons that might explain the pattern in the survey. There is no intervention in which one of these barriers was removed and adoption measured again.
The outlook identifies a separate limit of package-level information. A package dependency tells a developer that some software from another package is required at the declared level of granularity. The security question the authors raise concerns whether the developer's program actually reaches the affected part of that dependency. Licensing questions can likewise depend on finer relationships than a package declaration communicates. The proposal to examine calls across packages addresses that information gap. The paper does not evaluate such an analysis or show that it would settle every auditing question.
Boundaries of the census design
The choice of major language tools and notable platforms gives the survey a mixture of ecosystem designs. This selection supports a comparison of consequential cases. It does not yield an estimated proportion of all package managers that use complete solving, or a measured adoption trend across a defined population. The paper's historical assessment compares earlier observations with a later census. It has no repeated, equivalently sampled measurements across the interval.
The resolution ratings are capability judgments. They lack the operational detail a common workload would supply. The paper gives no per-request success rates for each tool, no distribution of solve times, and no measurement of how much work users must do when a request fails. Completeness is a formal property of the resolution problem as implemented. A complete method can still face difficult instances. The census provides no basis for translating that label into a guarantee about the time taken by a particular installation.
Comparison also depends on what each package manager counts as a valid state. One may admit separate versions, another may choose a version based on its distance from the original request, and another may report that a strict request is unsatisfiable. An installation under a fallback rule can be evaluated against the manager's policy, but it cannot be treated as a solution to a version range the manager set aside. The paper's decision to include fallback behavior is therefore important to interpreting the correctness and completeness entries. A uniform success count would have to specify how to compare these differing meanings of success.
Some entries in the feature matrix are unknown. They limit how confidently one can generalize across columns or use the matrix to rank the tools. A recorded feature also says little about how prominently it is exposed, how frequently it is used, or how demanding its integration was. The distinction between Opam's architecture and apt-get's optional route illustrates how much can depend on information beyond the presence of a capability. The discussion provides that information for particular cases, with less detail for others.
The paper reports no controlled test attributing improved installations to SAT, CUDF, explicit preferences or another single change. The package managers differ in distribution, package identity, dependency language and fallback policies as well as solving technique. MISC offers shared instances for participating solvers, but the paper does not apply those instances as an end-to-end comparison of the surveyed managers. It would therefore be unwarranted to infer a performance advantage of one architecture over another from the adoption evidence. The strongest supported claims concern design feasibility, particular operational experiences and the capabilities that the census identifies.
What came after
The paper's outlook follows changes that had emerged since the work it revisits and identifies directions still ahead at the time of writing. The subsequent research record cannot be traced from this account. Its forward-looking examples are proposals, developments and announcements the authors discuss, rather than evidence of later studies adopting the paper's architecture.
Separate environments changed the scope of resolution
The authors consider containers, virtual environments and functional package managers, including NixOS and Guix. These approaches can create separate package namespaces where incompatible packages can live side by side. A namespace determines which package identities a given environment sees. When two applications use different namespaces, each can have access to a release that conflicts with the release needed by the other. The system can accommodate both without finding a single package selection adequate for both applications.
That capability changes the question posed to a resolver. In a shared environment, a choice made to accommodate one application can constrain another application that happens to use the same package name. Splitting those environments removes some of those interactions. Each environment can still contain packages whose dependency declarations constrain one another, so the benefit depends on where the boundary falls. Resolution remains important inside the package state that needs to be consistent.
The authors connect the growing interest in functional package management with interest in scientific and build reproducibility, as well as analogies to containers. A separate environment makes it possible to reproduce the package choices for one use without forcing other applications to share them. The relevance to the paper is that some installation problems can be addressed by changing what shares a namespace. The earlier proposal addresses how to reason about the dependencies that do share one. These are complementary responses to different parts of the problem.
The PyPI and pip example gives the authors a reason to expect continued demand for complete resolution. They discuss a contemporary announcement that pip would implement proper dependency solving, in an ecosystem where virtual environments were already popular. The example joins two observations from the paper's own time. Isolation was widely used there, and the ecosystem was planning to improve resolution. The paper treats the announcement as a sign of where the tooling was headed. It supplies no outcome from the proposed change.
Auditing calls for evidence finer than packages
FASTEN represents a different extension of the problem. A configuration can be valid while leaving open an important question about what the program does with it. Package relationships describe the declared units of installation and reuse. A program can actually reuse narrower parts, such as modules and functions. As the authors point out, that mismatch makes it difficult to infer practical consequences from the presence of a dependency alone.
For the security question, the relevant distinction is between a package containing an affected part and the developer's program using that part. For licensing, the authors similarly see potential in tracing relationships at a finer level than the installed-package list. A call graph represents which functions call which others. A graph spanning packages could show how a program reaches into dependencies and which relationships cross package boundaries. FASTEN envisaged constructing such graphs to make that information available.
The authors also mention data-driven evolution of application programming interfaces, or APIs. If calls into another package can be observed at the level where software uses its interface, maintainers may gain a more precise account of how that interface is relied upon. Package declarations provide a wider view of who depends on a package. Call relationships could reveal which parts of an interface those dependencies use. The paper frames this as a possibility enabled by finer information, with no reported measurement of its effect.
These directions retain the distinction between establishing a consistent installation and establishing what the installation implies. Namespace choices determine which packages must be considered together. A solver finds a configuration under the applicable rules and preferences. A call graph can then support questions about relationships within the software that configuration contains. The paper leaves those later questions open while documenting the progress package managers had made in answering the installation question itself.
Institutions
Fields, topics and concepts
Shelves 3The field of science this work belongs to (OpenAlex fields).Computer Science · 19,503 worksArtificial Intelligence · 18,805 worksInformation Systems · 1,888 works
Cite
Cite as Pietro Abate, Roberto Di Cosmo, Georgios Gousios and Stefano Zacchiroli. 2020. Dependency Solving Is Still Hard, but We Are Getting Better at It. arXiv:2011.07851 (2020 IEEE 27th International Conference on Software Analysis, Evolution and Reengineering (SANER), Feb 2020, London, Canada. pp.547-551).
@misc{abate2020dependency,
title = {{Dependency Solving Is Still Hard, but We Are Getting Better at It}},
author = {Pietro Abate, Roberto {Di Cosmo}, Georgios Gousios and Stefano Zacchiroli},
year = {2020},
doi = {10.1109/saner48275.2020.9054837},
eprint = {2011.07851},
archivePrefix = {arXiv},
url = {https://doi.org/10.1109/saner48275.2020.9054837}
}This page in Markdown https://md.research.elamur.ai/free/en/papers/abate-2020-dependency-solving-still-hard-but/