-
Notifications
You must be signed in to change notification settings - Fork 5.5k
Open
Labels
RHELRelated to running salt on or targeting Red Had Enterprise LinuxRelated to running salt on or targeting Red Had Enterprise Linuxfedoraaffects this operating systemaffects this operating systemtech-debt
Milestone
Description
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
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 LinuxRelated to running salt on or targeting Red Had Enterprise Linuxfedoraaffects this operating systemaffects this operating systemtech-debt