How do DAGs work within package managers

Posted by Farshief@reddit | linux | View on Reddit | 8 comments

I've been reading about package management and dependency resolution recently and am trying to figure out how the various package managers handle this.

I've learned that instead of a dependency tree like I thought of it previously that it's actually more of a topographical landscape represented by Direct Acyclic Graphs.

So my question specifically is do the maintainers of the various package managers like apt, rpm, etc just have a single central DAG that references in a massive repo of packages; or, do they have smaller DAGs for each package that can be referenced to find out its specific dependencies?