Currently PkgDebian is the only overrider class for PkgManager and it has been written to deal with the Debian package management system. Its implementation is mainly based on the APT library libapt-pkg which is used to access many packages information. The possibility to look at the library source code made us able to identify the functions we needed to retrieve the packages metadata.
In this section the implementation details are examined. Fist of all we present three classes that hold a central role in the PkgDebian development: two of them are included in the class private data, whereas the third is a global object instantiated by APT and used to retrieve configuration settings. Then we focus on methods that are particular to the Debian interaction. Purposes of all the methods have been explained during the PkgManager interface presentation (see section 5.3.3).
Because of the daemon silent activity, each task is carried out following the APT configuration. For example, PackageFS deletes the package configuration files during removal operation only if this behavior is defined in the APT configuration files.