Sack

class dnf.sack.Sack

The package sack. Contains metadata information about all known packages, installed and available.

query()

Return a Query for querying packages contained in this sack.

dnf.sack.rpmdb_sack(base)

Returns a new instance of sack containing only installed packages (@System repo). Useful to get list of the installed RPMs after transaction.