Dpkg::BuildAPI(3perl) libdpkg-perl Dpkg::BuildAPI(3perl)

# [NAME](#NAME)

Dpkg::BuildAPI - handle build API versions

# [DESCRIPTION](#DESCRIPTION)

The Dpkg::BuildAPI module provides functions to fetch the current dpkg build API level.

**Note**: This is a private module, its API can change at any time.

# [FUNCTIONS](#FUNCTIONS)

$level = get\_build\_api(\[$ctrl])

Get the build API level, from the environment variable **DPKG\_BUILD\_API**, or if not defined and a $ctrl Dpkg::Control::Info object passed as an argument, from its build dependency fields. If no $ctrl object gets passed the previous value obtained is returned.

[**reset\_build\_api()**](#reset_build_api%28%29)

Reset the cached build API level.

# [CHANGES](#CHANGES)

## [Version 0.xx](#Version_0.xx)

This is a private module.

2026-09-09 1.23.11-dirty

---

Document: Dpkg::BuildAPI(3perl) from dpkg 1.23.11-r2 (Chainguard OS)
Source: https://git.dpkg.org/git/dpkg/dpkg.git
