Recommended and alternate dependencies in FreeBSD .pkg
0
votes
1
answer
139
views
A FreeBSD package typically specifies dependencies in its manifest as follows:
deps:
# python39, version 3.9 or higher
python39: {origin: lang/python39, version: 3.9}
# bind-tools, any version
bind-tools: {origin: dns/bind-tools}
This will cause the package manager to check if both dependencies in the desired version are present and, if they are missing, add them or abort with an error unless told to ignore dependencies.
Debian-style packages (.deb) on Linux, on the other hand, offer features such as:
* Recommendations: these indicate to the package manager that only certain features of the software depend on packages listed as recommended (whereas the package is mostly useless if a dependency is missing). Depending on how the package manager is configured, recommendations can be treated as dependencies or the package can be installed without them.
* Alternatives: for example, a package can depend on
curl | wget
, in which case the presence of either package alone will satisfy that particular dependency, as the software finds out at run-time which of the two is installed and works with whatever is available.
Does .pkg offer these features as well? How would these be specified in the manifest?
Asked by user149408
(1515 rep)
Apr 17, 2024, 04:52 PM
Last activity: Apr 19, 2024, 09:30 AM
Last activity: Apr 19, 2024, 09:30 AM