The apt.debfile provides classes to work with locally available debian packages, or source packages.
A Debian Package (.deb file).
The DebPackage class is a class for working with ‘.deb’ files, also known as Debian packages.
It provides methods and attributes to get a list of the files in the package, to install the package and much more.
If you specify cache it has to point to an apt.cache.Cache() object.
Check if the package is installable.
check if installing the package would break exsisting package on the system, e.g. system has: smc depends on smc-data (= 1.4) and user tries to installs smc-data 1.6
Check if there are conflicts with existing or selected packages.
Check if the package conflicts with a existing or to be installed package. Return True if the pkg is OK.
Compare the package to the version available in the cache.
Checks if the package is already installed or availabe in the cache and if so in what version, returns one of (VERSION_NONE, VERSION_OUTDATED, VERSION_SAME, VERSION_NEWER).
List of package names conflicting with this package.
return the content of a specific control.tar.gz file
return the list of files in control.tar.gt
return the content of a specific control.tar.gz file
List of package names on which this package depends on.
return the list of files in the deb.
Install the package.
Return missing dependencies.
open given debfile
List of virtual packages which are provided by this package.
List of packages which are replaced by this package.
Return True if a given non-virtual package is replaced.
Return True if the deb packages replaces a real (not virtual) packages named (pkgname, oper, ver).
Get the changes required to satisfy the dependencies.
Returns: a tuple with (install, remove, unauthenticated)
Satisfy the dependencies in the given string.
A locally available source package.
Provide functionality to work with locally available source packages, especially with their ‘.dsc’ file.
New in version 0.7.9.
Check if the package is installable..
check if installing the package would break exsisting package on the system, e.g. system has: smc depends on smc-data (= 1.4) and user tries to installs smc-data 1.6
Check if there are conflicts with existing or selected packages.
Check if the package conflicts with a existing or to be installed package. Return True if the pkg is OK.
Compare the package to the version available in the cache.
Checks if the package is already installed or availabe in the cache and if so in what version, returns one of (VERSION_NONE, VERSION_OUTDATED, VERSION_SAME, VERSION_NEWER).
Return the dependencies of the package
return the content of a specific control.tar.gz file
return the list of files in control.tar.gt
return the content of a specific control.tar.gz file
Return the dependencies of the package
return the list of files in the deb.
Install the package.
Return missing dependencies.
Open the package.
List of virtual packages which are provided by this package.
List of packages which are replaced by this package.
Return True if a given non-virtual package is replaced.
Return True if the deb packages replaces a real (not virtual) packages named (pkgname, oper, ver).
Get the changes required to satisfy the dependencies.
Returns: a tuple with (install, remove, unauthenticated)
Satisfy the dependencies in the given string.
apt.cdrom - Functionality like in apt-cdrom
apt.package — Classes for package handling
Enter search terms or a module, class or function name.