deb Facts¶
deb.DebArch¶
Returns the architecture string used in apt repository sources, eg amd64.
deb.DebPackage¶
Returns information on a .deb archive or installed package.
Package resolution depends on the remote current working directory and is therefore not idempotent:
- Names that do not match the shell pattern
*.debquery the installed package database. - Names that match
*.debinspect the archive only when that file exists in the current working directory. Otherwise they query the installed package database.
Consequently, archive names such as package.deb.old and
package.deb~ cannot be queried as files. Older pyinfra versions tried
to inspect any existing path as an archive instead.
deb.DebPackages¶
Returns a dict of installed dpkg packages: