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

# [NAME](#NAME)

Dpkg::BuildTree - handle build tree actions

# [DESCRIPTION](#DESCRIPTION)

The Dpkg::BuildTree module provides functions to handle build tree actions.

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

# [METHODS](#METHODS)

$bt = Dpkg::BuildTree-&gt;new(%opts)

Create a new Dpkg::BuildTree object.

Options:

[**dir**](#dir)

The build tree directory. If not specified, it assumes the current working directory.

$bt-&gt;**clean()**

Clean the build tree, by removing any dpkg generated artifacts.

$bool = $bt-&gt;**needs\_root()**

Check whether the build tree needs root to build.

# [CHANGES](#CHANGES)

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

This is a private module.

2026-09-09 1.23.11-dirty

---

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