Package¶
-
class
dnf.package.
Package
¶ Represents a unit of software management, typically corresponds to an RPM file.
-
arch
¶ Architecture of the package (string).
-
baseurl
¶ Baseurl of the package (string).
-
buildtime
¶ Seconds since the epoch when the package was built (integer).
-
chksum
¶ Tuple with package checksum and checksum type or
None
. The checksum is returned only for packages from repository. The checksum is not returned for installed package or packages from commandline repository. The checksum represents @pkgid value which links primary metadata with other repository metadata files.
-
conflicts
¶ Packages that the package conflicts with (list of Hawkey.Reldep).
-
debug_name
¶ The name of the debug-info package (string).
-
description
¶ The description of the package (string).
-
downloadsize
¶ The size of rpm package in bytes (integer).
-
epoch
¶ Epoch of the package (integer).
-
enhances
¶ Packages that the package enhances (list of Hawkey.Reldep).
-
evr
¶ EVR (epoch:version-revision) of the package (string).
-
files
¶ Files the package provides (list of strings).
-
from_repo
¶ For installed packages returns id of repository from which the package was installed if such information is available in the history database. Otherwise returns an empty string (string).
-
group
¶ Group of the package (string).
-
hdr_chksum
¶ Tuple with package header checksum and checksum type or
None
. The checksum is returned only for installed packages.
-
hdr_end
¶ Header end index for the package. Returns 0 for not known (integer).
-
changelogs
¶ Changelogs for the package (list of dictionaries with “timestamp”, “author” and “text” keys).
-
installed
¶ Returns
True
if the package is installed (boolean).
-
installtime
¶ Seconds since the epoch when the package was installed (integer).
-
installsize
¶ Space in bytes the package takes on the system after installation (integer).
-
license
¶ License of the package (string).
-
medianr
¶ Media number for the package (integer).
-
name
¶ The name of the package (string).
-
obsoletes
¶ Packages that are obsoleted by the package (list of Hawkey.Reldep).
-
provides
¶ Package’s provides (list of Hawkey.Reldep).
-
recommends
¶ Packages that are recommended by the package (list of Hawkey.Reldep).
-
release
¶ Release of the package (string).
-
reponame
¶ Id of repository the package belongs to (@System for installed packages) (string).
-
requires
¶ Package’s requirements, combined requires_pre and regular_requires (list of Hawkey.Reldep).
-
requires_pre
¶ Installed package’s %pre, %post, %preun and %postun requirements (list of Hawkey.Reldep). For not installed package returns just %pre and $post requirements.
-
regular_requires
¶ Package’s requirements without %pre, %post, %preun and %postun requirements (list of Hawkey.Reldep).
-
prereq_ignoreinst
¶ Safe to remove requires_pre requirements of an installed package (list of Hawkey.Reldep).
-
rpmdbid
¶ The rpmdb ID for the package (integer).
-
source_debug_name
¶ The name of the source debug-info package (string).
-
source_name
¶ The name of the source package (string).
-
sourcerpm
¶ Full name of the SRPM used to build this package (string).
-
suggests
¶ Packages that are suggested by the package (list of Hawkey.Reldep).
-
summary
¶ Summary for the package (string).
-
supplements
¶ Packages that the package supplements (list of Hawkey.Reldep).
-
url
¶ URL for the package (string).
-
version
¶ Version of the package (string).
-
remote_location
(schemes=('http', 'ftp', 'file', 'https'))¶ The location from where the package can be downloaded from (string). If the information is unavailable it returns
None
.schemes
limits result to list of protocols.
-