Description
APT package metadata and operations can be accessed from Python through libapt-pkg bindings. This library is for tools that inspect or manage Debian package state. Package operations can affect the system, so locks, privileges, repositories, and transaction errors must be handled carefully.