Skip to content

[TECH DEBT] [3006.x] download function in yumpkg relies on yum-utils which is not available on Fedora and some later Redhat platforms #67786

Open

Description

@dmurphy18

Description of the tech debt to be addressed, include links and screenshots

The current implementation of yumpkg function download relies on yumdownloader from yum-utils which is not available on current versions of Fedora and expect it to be removed from later versions of RedHat platforms.
, for example: RedHat 9 / Rocky Linux 9, /usr/bin/yum -> dnf-3 and

[root@david-XPS-15-9570 /]# dnf download --help
usage: dnf download [-c [config file]] [-q] [-v] [--version] [--installroot [path]] [--nodocs] [--noplugins] [--enableplugin [plugin]] [--disableplugin [plugin]] [--releasever RELEASEVER] [--setopt SETOPTS] [--skip-broken] [-h]
                    [--allowerasing] [-b | --nobest] [-C] [-R [minutes]] [-d [debug level]] [--debugsolver] [--showduplicates] [-e ERRORLEVEL] [--obsoletes] [--rpmverbosity [debug level name]] [-y] [--assumeno] [--enablerepo [repo]]
                    [--disablerepo [repo] | --repo [repo]] [--enable | --disable] [-x [package]] [--disableexcludes [repo]] [--repofrompath [repo,path]] [--noautoremove] [--nogpgcheck] [--color COLOR] [--refresh] [-4] [-6]
                    [--destdir DESTDIR] [--downloadonly] [--comment COMMENT] [--bugfix] [--enhancement] [--newpackage] [--security] [--advisory ADVISORY] [--bz BUGZILLA] [--cve CVES] [--sec-severity {Critical,Important,Moderate,Low}]
                    [--forcearch ARCH] [--source] [--debuginfo] [--debugsource] [--arch [arch]] [--resolve] [--alldeps] [--url] [--urlprotocols {http,https,rsync,ftp}]
                    packages [packages ...]

See

salt/salt/modules/yumpkg.py

Lines 3331 to 3351 in 685d330

def download(*packages, **kwargs):
"""
.. versionadded:: 2015.5.0
Download packages to the local disk. Requires ``yumdownloader`` from
``yum-utils`` package.
.. note::
``yum-utils`` will already be installed on the minion if the package
was installed from the Fedora / EPEL repositories.
CLI Example:
.. code-block:: bash
salt '*' pkg.download httpd
salt '*' pkg.download httpd postfix
"""
if not salt.utils.path.which("yumdownloader"):
raise CommandExecutionError("'yumdownloader' command not available")

dnf and dnf5 provides a download capability which needs to be implemented

Versions Report

(Provided by running salt --versions-report. Please also mention any differences in master/minion versions.)

Activity

  1. self-assigned this
    on Mar 3, 2025
  2. added this to the Sulfur v3006.10 milestone on Mar 3, 2025
  3. added
    fedora
    RHEL
    on Mar 3, 2025
  4. dmurphy18 commented on Mar 3, 2025

    @dmurphy18
    ContributorAuthor

    Note yum-utils is available on RedHat 9 / Rocky Linux 9, however it is not available on Fedora 40, however dnf-utils is available and it contains /usr/bin/yumdownloader in the dnf-utils package, hence this is not urgent but does need to be addressed and leverage dnf[5] download

  5. removed this from the Sulfur v3006.15 milestone on Sep 2, 2025
  6. 12 remaining items

  7. self-assigned this
    on Sep 22, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Labels

RHELfedoratech-debt

Type

No type

Projects

No projects

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions