b374k
m1n1 1.01
Apache/2.4.41 (Ubuntu)
Linux vmi616275.contaboserver.net 5.4.0-84-generic #94-Ubuntu SMP Thu Aug 26 20:27:37 UTC 2021 x86_64
uid=33(www-data) gid=33(www-data) groups=33(www-data)
server ip : 62.171.164.128 | your ip : 127.0.0.1
safemode OFF
 >  / home / a / home / dev2.destoffenstraat.com / vendor / composer / composer / doc / dev /
Filename/home/a/home/dev2.destoffenstraat.com/vendor/composer/composer/doc/dev/DefaultPolicy.md
Size1.25 kb
Permissionrw-r--r--
Ownerroot : root
Create time21-Aug-2025 12:26
Last modified29-Sep-2023 10:50
Last accessed23-Aug-2025 04:59
Actionsedit | rename | delete | download (gzip)
Viewtext | code | image
# Default Solver Policy

A solver policy defines behaviour variables of the dependency solver. It decides
which versions are considered newer than others, which packages should be
preferred over others and whether operations like downgrades or uninstall are
allowed.

## Selection of preferred Packages

The following describe package pool situations with user requests and the
resulting order in which the solver will try to install them.

The rules are to be applied in the order of these descriptions.

### Repository priorities

Packages Repo1.Av1, Repo2.Av1

* priority(Repo1) >= priority(Repo2) => (Repo1.Av1, Repo2.Av1)
* priority(Repo1) < priority(Repo2) => (Repo2.Av1, Repo1.Av1)

### Package versions

Packages: Av1, Av2, Av3

* Installed: Av2

Request: install A

* (Av3)

### Virtual Packages (provides)

Packages Av1, Bv1

* Av1 provides Xv1
* Bv1 provides Xv1

Request: install X

* priority(Av1.repo) >= priority(Bv1.repo) => (Av1, Bv1)
* priority(Av1.repo) < priority(Bv1.repo) => (Bv1, Av1)

### Package replacements

Packages: Av1, Bv2

* Bv2 replaces Av1

Request: install A

* priority(Av1.repo) >= priority(Bv2.repo) => (Av1, Bv2)
* priority(Av1.repo) < priority(Bv2.repo) => (Bv2, Av1)

Bv2 version is ignored, only the replacement version for A matters.