Dpkg::Deps::OR(3perl) libdpkg-perl Dpkg::Deps::OR(3perl)

# [NAME](#NAME)

Dpkg::Deps::OR - list of OR dependencies

# [DESCRIPTION](#DESCRIPTION)

This class represents a list of dependencies of which only one must be met for the dependency to be true. It inherits from Dpkg::Deps::Multiple.

# [METHODS](#METHODS)

$string = $dep-&gt;output(\[$fh])

The **output()** method uses " | " to join the list of sub-dependencies.

$tribool = $dep-&gt;implies($other\_dep)

Returns 1 when $dep implies $other\_dep. Returns 0 when $dep implies NOT($other\_dep). Returns undef when there's no implication. $dep and $other\_dep do not need to be of the same type.

$tribool = $dep-&gt;get\_evaluation($facts)

Evaluates the dependency given a list of installed packages and a list of virtual packages provided. These lists are part of the Dpkg::Deps::KnownFacts object given as parameters.

Returns 1 when it's true, 0 when it's false, undef when some information is lacking to conclude.

$dep-&gt;simplify\_deps($facts, @assumed\_deps)

Simplifies the dependency as much as possible given the list of facts (see object Dpkg::Deps::KnownFacts) and a list of other dependencies that are known to be true.

# [CHANGES](#CHANGES)

## [Version 1.00 (dpkg 1.15.6)](#Version_1.00_%28dpkg_1.15.6%29)

Mark the module as public.

2026-09-09 1.23.11-dirty

---

Document: Dpkg::Deps::OR(3perl) from dpkg 1.23.11-r1 (Chainguard OS)
Source: https://git.dpkg.org/git/dpkg/dpkg.git
