Dpkg::Arch - handle architectures
The Dpkg::Arch module provides functions to handle Debian architectures, wildcards, and mapping from and to GNU triplets.
No symbols are exported by default. The :all tag can be used to import all symbols. The :getters, :parsers, :mappers and :operators tags can be used to import specific symbol subsets.
Get the raw build Debian architecture, without taking into account variables from the environment.
Get the build Debian architecture, using DEB_BUILD_ARCH from the environment if available.
Get the raw host Debian architecture, without taking into account variables from the environment.
Get the host Debian architecture, using DEB_HOST_ARCH from the environment if available.
Get an array with all currently known Debian architectures.
Map a GNU triplet into a Debian multiarch triplet.
Map a Debian architecture into a Debian multiarch triplet.
Map a Debian architecture into a GNU triplet.
Map a GNU triplet into a Debian architecture.
Evaluate the equality of a Debian architecture, by comparing with another Debian architecture. No wildcard matching is performed.
Evaluate the identity of a Debian architecture, by matching with an architecture wildcard.
Evaluate whether a Debian architecture is an architecture wildcard.
Validate an architecture name.
If the "positive" option is set to a true value, only positive architectures will be accepted, otherwise negated architectures are allowed.
Evaluate whether a Debian architecture applies to the list of architecture restrictions, as usually found in dependencies inside square brackets.
Parse an architecture list.
New argument: Accept a "positive" option in debarch_is_illegal() and debarch_list_parse().
New import tags: ":all", ":getters", ":parsers", ":mappers", ":operators".
New functions: debarch_is_illegal(), debarch_list_parse().
Mark the module as public.
To install Dpkg, copy and paste the appropriate command in to your terminal.
perl -MCPAN -e shell
For more information on module installation, please visit the detailed CPAN module installation guide.