---
name: "AptPkg::System"
section: "3pm"
platform: "linux"
package: "libapt-pkg-perl"
version: "0.1.42"
release: "Debian 13 (Trixie)"
platforms: ["linux"]
url: "https://new.carta.tech/AptPkg::System"
---

# AptPkg::System(3pm)

APT system abstraction class

## NAME

AptPkg::System - APT system abstraction class

## SYNOPSIS

use AptPkg::System;

## DESCRIPTION

The AptPkg::System module provides an interface to **APT**'s system abstraction mechanism.

### AptPkg::System

The AptPkg::System package implements the **APT** pkgSystem class.

An instance of the AptPkg::System class appropriate for the particular back-end packaging system (deb, rpm, etc.) may be fetched using the system method from AptPkg::Config.

A global instance of the libapt-pkg \_system instance is provided as `$AptPkg::System::_system`, and may be imported.

The following methods are implemented:

- label

  Return the description of the packaging system, for example:

  ```
      Debian dpkg interface
  ```

  for Debian systems.

- lock

  Lock the packaging system.

- unlock(*QUIET*)

  Unlock the packaging system, ignoring errors if *QUIET* is non-zero.

- versioning

  Return an instance of the AptPkg::Version class for this system.

## SEE ALSO

[**AptPkg::Config**(3pm)](/AptPkg::Config/3pm.md), [**AptPkg::Version**(3pm)](/AptPkg::Version/3pm.md), [**AptPkg**(3pm)](/AptPkg/3pm.md).

## AUTHOR

Brendan O'Dea \<bod@debian.org\>
