---
name: "Dpkg::BuildTree"
section: "3perl"
platform: "linux"
package: "dpkg"
version: "1.23.11-1"
release: "Arch Linux 2026-11-01"
platforms: ["linux"]
url: "https://new.carta.tech/Dpkg::BuildTree"
---

# Dpkg::BuildTree(3perl)

handle build tree actions

## NAME

Dpkg::BuildTree - handle build tree actions

## 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

- $bt = Dpkg::BuildTree-\>new(%opts)

  Create a new Dpkg::BuildTree object.

  Options:

  - **dir**

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

- $bt-\>**clean()**

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

- $bool = $bt-\>**needs\_root()**

  Check whether the build tree needs root to build.

## CHANGES

### Version 0.xx

This is a private module.
