|
Packit |
6f3914 |
..
|
|
Packit |
6f3914 |
Copyright (C) 2014-2018 Red Hat, Inc.
|
|
Packit |
6f3914 |
|
|
Packit |
6f3914 |
This copyrighted material is made available to anyone wishing to use,
|
|
Packit |
6f3914 |
modify, copy, or redistribute it subject to the terms and conditions of
|
|
Packit |
6f3914 |
the GNU General Public License v.2, or (at your option) any later version.
|
|
Packit |
6f3914 |
This program is distributed in the hope that it will be useful, but WITHOUT
|
|
Packit |
6f3914 |
ANY WARRANTY expressed or implied, including the implied warranties of
|
|
Packit |
6f3914 |
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General
|
|
Packit |
6f3914 |
Public License for more details. You should have received a copy of the
|
|
Packit |
6f3914 |
GNU General Public License along with this program; if not, write to the
|
|
Packit |
6f3914 |
Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA
|
|
Packit |
6f3914 |
02110-1301, USA. Any Red Hat trademarks that are incorporated in the
|
|
Packit |
6f3914 |
source code or documentation are not subject to the GNU General Public
|
|
Packit |
6f3914 |
License and may only be used or replicated with the express permission of
|
|
Packit |
6f3914 |
Red Hat, Inc.
|
|
Packit |
6f3914 |
|
|
Packit |
6f3914 |
=========
|
|
Packit |
6f3914 |
Package
|
|
Packit |
6f3914 |
=========
|
|
Packit |
6f3914 |
|
|
Packit |
6f3914 |
.. class:: dnf.package.Package
|
|
Packit |
6f3914 |
|
|
Packit |
6f3914 |
Represents a unit of software management, typically corresponds to an RPM file.
|
|
Packit |
6f3914 |
|
|
Packit |
6f3914 |
.. attribute:: arch
|
|
Packit |
6f3914 |
|
|
Packit |
6f3914 |
Architecture of the package (string).
|
|
Packit |
6f3914 |
|
|
Packit |
6f3914 |
.. attribute:: baseurl
|
|
Packit |
6f3914 |
|
|
Packit |
6f3914 |
Baseurl of the package (string).
|
|
Packit |
6f3914 |
|
|
Packit |
6f3914 |
.. attribute:: buildtime
|
|
Packit |
6f3914 |
|
|
Packit |
6f3914 |
Seconds since the epoch when the package was built (integer).
|
|
Packit |
6f3914 |
|
|
Packit |
6f3914 |
.. attribute:: chksum
|
|
Packit |
6f3914 |
|
|
Packit |
6f3914 |
Tuple with package checksum and checksum type or ``None``. The checksum is returned only for
|
|
Packit |
6f3914 |
packages from repository. The checksum is not returned for installed package or packages from
|
|
Packit |
6f3914 |
commandline repository. The checksum represents @pkgid value which links primary metadata with
|
|
Packit |
6f3914 |
other repository metadata files.
|
|
Packit |
6f3914 |
|
|
Packit |
6f3914 |
.. attribute:: conflicts
|
|
Packit |
6f3914 |
|
|
Packit |
6f3914 |
Packages that the package conflicts with (list of Hawkey.Reldep).
|
|
Packit |
6f3914 |
|
|
Packit |
6f3914 |
.. attribute:: debug_name
|
|
Packit |
6f3914 |
|
|
Packit |
6f3914 |
The name of the debug-info package (string).
|
|
Packit |
6f3914 |
|
|
Packit |
6f3914 |
.. attribute:: description
|
|
Packit |
6f3914 |
|
|
Packit |
6f3914 |
The description of the package (string).
|
|
Packit |
6f3914 |
|
|
Packit |
6f3914 |
.. attribute:: downloadsize
|
|
Packit |
6f3914 |
|
|
Packit |
6f3914 |
The size of rpm package in bytes (integer).
|
|
Packit |
6f3914 |
|
|
Packit |
6f3914 |
.. attribute:: epoch
|
|
Packit |
6f3914 |
|
|
Packit |
6f3914 |
Epoch of the package (integer).
|
|
Packit |
6f3914 |
|
|
Packit |
6f3914 |
.. attribute:: enhances
|
|
Packit |
6f3914 |
|
|
Packit |
6f3914 |
Packages that the package enhances (list of Hawkey.Reldep).
|
|
Packit |
6f3914 |
|
|
Packit |
6f3914 |
.. attribute:: evr
|
|
Packit |
6f3914 |
|
|
Packit |
6f3914 |
EVR (epoch:version-revision) of the package (string).
|
|
Packit |
6f3914 |
|
|
Packit |
6f3914 |
.. attribute:: files
|
|
Packit |
6f3914 |
|
|
Packit |
6f3914 |
Files the package provides (list of strings).
|
|
Packit |
6f3914 |
|
|
Packit |
6f3914 |
.. attribute:: group
|
|
Packit |
6f3914 |
|
|
Packit |
6f3914 |
Group of the package (string).
|
|
Packit |
6f3914 |
|
|
Packit |
6f3914 |
.. attribute:: hdr_chksum
|
|
Packit |
6f3914 |
|
|
Packit |
6f3914 |
Tuple with package header checksum and checksum type or ``None``. The checksum is returned only for installed packages.
|
|
Packit |
6f3914 |
|
|
Packit |
6f3914 |
.. attribute:: hdr_end
|
|
Packit |
6f3914 |
|
|
Packit |
6f3914 |
Header end index for the package. Returns 0 for not known (integer).
|
|
Packit |
6f3914 |
|
|
Packit |
6f3914 |
.. attribute:: changelogs
|
|
Packit |
6f3914 |
|
|
Packit |
6f3914 |
Changelogs for the package (list of dictionaries with "timestamp", "author" and "text" keys).
|
|
Packit |
6f3914 |
|
|
Packit |
6f3914 |
.. attribute:: installed
|
|
Packit |
6f3914 |
|
|
Packit |
6f3914 |
Returns ``True`` if the package is installed (boolean).
|
|
Packit |
6f3914 |
|
|
Packit |
6f3914 |
.. attribute:: installtime
|
|
Packit |
6f3914 |
|
|
Packit |
6f3914 |
Seconds since the epoch when the package was installed (integer).
|
|
Packit |
6f3914 |
|
|
Packit |
6f3914 |
.. attribute:: installsize
|
|
Packit |
6f3914 |
|
|
Packit |
6f3914 |
Space in bytes the package takes on the system after installation (integer).
|
|
Packit |
6f3914 |
|
|
Packit |
6f3914 |
.. attribute:: license
|
|
Packit |
6f3914 |
|
|
Packit |
6f3914 |
License of the package (string).
|
|
Packit |
6f3914 |
|
|
Packit |
6f3914 |
.. attribute:: medianr
|
|
Packit |
6f3914 |
|
|
Packit |
6f3914 |
Media number for the package (integer).
|
|
Packit |
6f3914 |
|
|
Packit |
6f3914 |
.. attribute:: name
|
|
Packit |
6f3914 |
|
|
Packit |
6f3914 |
The name of the package (string).
|
|
Packit |
6f3914 |
|
|
Packit |
6f3914 |
.. attribute:: obsoletes
|
|
Packit |
6f3914 |
|
|
Packit |
6f3914 |
Packages that are obsoleted by the package (list of Hawkey.Reldep).
|
|
Packit |
6f3914 |
|
|
Packit |
6f3914 |
.. attribute:: provides
|
|
Packit |
6f3914 |
|
|
Packit |
6f3914 |
Package's provides (list of Hawkey.Reldep).
|
|
Packit |
6f3914 |
|
|
Packit |
6f3914 |
.. attribute:: recommends
|
|
Packit |
6f3914 |
|
|
Packit |
6f3914 |
Packages that are recommended by the package (list of Hawkey.Reldep).
|
|
Packit |
6f3914 |
|
|
Packit |
6f3914 |
.. attribute:: release
|
|
Packit |
6f3914 |
|
|
Packit |
6f3914 |
Release of the package (string).
|
|
Packit |
6f3914 |
|
|
Packit |
6f3914 |
.. attribute:: reponame
|
|
Packit |
6f3914 |
|
|
Packit |
6f3914 |
Id of repository the package was installed from (string).
|
|
Packit |
6f3914 |
|
|
Packit |
6f3914 |
.. attribute:: requires
|
|
Packit |
6f3914 |
|
|
Packit |
6f3914 |
Package's requirements (list of Hawkey.Reldep).
|
|
Packit |
6f3914 |
|
|
Packit |
6f3914 |
.. attribute:: requires_pre
|
|
Packit |
6f3914 |
|
|
Packit |
6f3914 |
Package's install-time requirements (list of Hawkey.Reldep).
|
|
Packit |
6f3914 |
|
|
Packit |
6f3914 |
.. attribute:: rpmdbid
|
|
Packit |
6f3914 |
|
|
Packit |
6f3914 |
The rpmdb ID for the package (integer).
|
|
Packit |
6f3914 |
|
|
Packit |
6f3914 |
.. attribute:: source_debug_name
|
|
Packit |
6f3914 |
|
|
Packit |
6f3914 |
The name of the source debug-info package (string).
|
|
Packit |
6f3914 |
|
|
Packit |
6f3914 |
.. attribute:: source_name
|
|
Packit |
6f3914 |
|
|
Packit |
6f3914 |
The name of the source package (string).
|
|
Packit |
6f3914 |
|
|
Packit |
6f3914 |
.. attribute:: sourcerpm
|
|
Packit |
6f3914 |
|
|
Packit |
6f3914 |
Full name of the SRPM used to build this package (string).
|
|
Packit |
6f3914 |
|
|
Packit |
6f3914 |
.. attribute:: suggests
|
|
Packit |
6f3914 |
|
|
Packit |
6f3914 |
Packages that are suggested by the package (list of Hawkey.Reldep).
|
|
Packit |
6f3914 |
|
|
Packit |
6f3914 |
.. attribute:: summary
|
|
Packit |
6f3914 |
|
|
Packit |
6f3914 |
Summary for the package (string).
|
|
Packit |
6f3914 |
|
|
Packit |
6f3914 |
.. attribute:: supplements
|
|
Packit |
6f3914 |
|
|
Packit |
6f3914 |
Packages that the package supplements (list of Hawkey.Reldep).
|
|
Packit |
6f3914 |
|
|
Packit |
6f3914 |
.. attribute:: url
|
|
Packit |
6f3914 |
|
|
Packit |
6f3914 |
URL for the package (string).
|
|
Packit |
6f3914 |
|
|
Packit |
6f3914 |
.. attribute:: version
|
|
Packit |
6f3914 |
|
|
Packit |
6f3914 |
Version of the package (string).
|
|
Packit |
6f3914 |
|
|
Packit |
6f3914 |
.. method:: remote_location(schemes=('http', 'ftp', 'file', 'https'))
|
|
Packit |
6f3914 |
|
|
Packit |
6f3914 |
The location from where the package can be downloaded from (string). If the information is unavailable
|
|
Packit |
6f3914 |
it returns ``None``. ``schemes`` limits result to list of protocols.
|