dnf === .. py:module:: dnf Module Contents --------------- .. py:class:: Repo Bases: :py:obj:`tuple` .. py:attribute:: name .. py:attribute:: baseurl .. py:attribute:: data .. py:attribute:: file .. py:function:: repo_configs() Yield tuples of (name,dict) of all enabled repositories on the host, where 'dict' represents repository .conf contents. .. py:function:: repo_urls() Yield tuples of (name,baseurl) of all enabled repositories on the host. .. py:function:: repo_files() Yield Paths of all enabled repository files (yum.repos.d) on the host. .. py:function:: installable_url() Return one baseurl usable for installing the currently-running system. .. py:function:: download_rpm(nvr, source=False) Downloads a single RPM by its NVR (which can be just name or any other version/release string accepted by DNF) and yields the result as a temporary file path. 'source' specifies whether to download a binary or a source RPM. .. py:function:: extract_rpm(rpmfile) Extracts a binary or source RPM using rpm2cpio into a temporary directory, yielding a path to that directory.