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

@dmurphy18

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.)

Metadata

Metadata

Assignees

Labels

RHELRelated to running salt on or targeting Red Had Enterprise Linuxfedoraaffects this operating systemtech-debt

Type

No type

Projects

No projects

Relationships

None yet

Development

No branches or pull requests

Issue actions

    pFad - Phonifier reborn

    Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

    Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


    Alternative Proxies:

    Alternative Proxy

    pFad Proxy

    pFad v3 Proxy

    pFad v4 Proxy