From Fedora Project Wiki
No edit summary
mNo edit summary
(5 intermediate revisions by the same user not shown)
Line 101: Line 101:
== Dependencies ==
== Dependencies ==
The list of source packages (SRPMs) that still depend on some of the yum-related packages to be removed:
The list of source packages (SRPMs) that still depend on some of the yum-related packages to be removed:
* cobbler
* ddiskit
* diskimage-builder
* dlrn
* dnf-plugins-core
* fusioninventory-agent
* grinder
* kiwi
* koji
* mach
* mash
* nagios-plugins-check-updates
* perl-Fedora-Rebuild
* plague
* pulp-rpm
* pungi
* repo_manager
* repoview
* snake
* system-config-kickstart
* yum-axelget
* yum-rhn-plugin
Updated: 2019-01-21
Generated with:
<pre>
<pre>
deps.py:
# SRPM name:
#  bugzilla: link to BZ requesting the maintainer to port their project to DNF
#  requires: which of the yum-related packages this SRPM requires
#  rpms: list of binary RPMs affected


import os
appliance-tools:
import sys
  bugzilla: null
import shlex
  requires:
from subprocess import check_output
  - python2-urlgrabber
from rpmUtils.miscutils import splitFilename
  rpms:
  - appliance-tools
cas:
  bugzilla: null
  requires:
  - python2-urlgrabber
  rpms:
  - cas
cobbler:
  bugzilla: null
  requires:
  - createrepo
  - python2-urlgrabber
  rpms:
  - cobbler
  - koan
ddiskit:
  bugzilla: null
  requires:
  - createrepo
  rpms:
  - ddiskit
diskimage-builder:
  bugzilla: null
  requires:
  - yum-utils
  rpms:
  - diskimage-builder
dlrn:
  bugzilla: null
  requires:
  - createrepo
  rpms:
  - python2-dlrn
  - python3-dlrn
dnf-plugins-core:
  bugzilla: null
  requires:
  - yum
  rpms:
  - python2-dnf-plugin-migrate
fusioninventory-agent:
  bugzilla: null
  requires:
  - yum
  rpms:
  - fusioninventory-agent-yum-plugin
grinder:
  bugzilla: null
  requires:
  - createrepo
  rpms:
  - grinder
imagefactory:
  bugzilla: null
  requires:
  - python2-urlgrabber
  rpms:
  - imagefactory
kiwi:
  bugzilla: null
  requires:
  - yum
  rpms:
  - kiwi-systemdeps
koji:
  bugzilla: null
  requires:
  - createrepo
  rpms:
  - koji-builder
koji-containerbuild:
  bugzilla: null
  requires:
  - python2-urlgrabber
  rpms:
  - koji-containerbuild-builder
mach:
  bugzilla: null
  requires:
  - createrepo
  - yum
  rpms:
  - mach
mash:
  bugzilla: null
  requires:
  - createrepo
  - yum
  rpms:
  - mash
nagios-plugins-check-updates:
  bugzilla: null
  requires:
  - yum
  rpms:
  - nagios-plugins-check-updates
osc:
  bugzilla: null
  requires:
  - python2-urlgrabber
  rpms:
  - osc
perl-Fedora-Rebuild:
  bugzilla: null
  requires:
  - createrepo
  rpms:
  - perl-Fedora-Rebuild
plague:
  bugzilla: null
  requires:
  - createrepo
  rpms:
  - plague
pulp-rpm:
  bugzilla: null
  requires:
  - createrepo
  - yum
  rpms:
  - pulp-rpm-plugins
  - pulp-rpm-yumplugins
repo_manager:
  bugzilla: null
  requires:
  - createrepo
  rpms:
  - repo_manager
repoview:
  bugzilla: null
  requires:
  - yum
  rpms:
  - repoview
rpm-ostree-toolbox:
  bugzilla: null
  requires:
  - python2-urlgrabber
  rpms:
  - rpm-ostree-toolbox
sigul:
  bugzilla: null
  requires:
  - python2-urlgrabber
  rpms:
  - sigul-bridge
snake:
  bugzilla: null
  requires:
  - yum
  rpms:
  - snake
system-config-kickstart:
  bugzilla: null
  requires:
  - yum
  rpms:
  - system-config-kickstart
yum-axelget:
  bugzilla: null
  requires:
  - yum
  - yum-plugin-fastestmirror
  rpms:
  - yum-axelget
yum-rhn-plugin:
  bugzilla: null
  requires:
  - yum
  rpms:
  - yum-rhn-plugin
</pre>


# SRPMs to remove
Updated: 2019-01-23
remove = sys.argv[1:]


# Gather the list of depending SRPMs
Generated with:
depending = set()
https://gist.github.com/dmnks/787b121503ba1e9d1565d58b4a4e3a62
output = ''
<pre>$ python3 deps.py createrepo yum yum-langpacks yum-utils yum-metadata-parser yum-updatesd python-urlgrabber</pre>
# This has to be done per package, see
# https://bugzilla.redhat.com/show_bug.cgi?id=1667898
for name in remove:
    args = shlex.split('dnf repoquery --source --whatrequires %s' % name)
    output += check_output(args, stderr=open(os.devnull, 'w'))
 
# Parse the list
for line in output.splitlines():
    if line == 'None':
        continue
    n, e, v, r, a = splitFilename(line)
    depending.add(n)
 
# Remove the passed SRPMs from the resulting list
depending -= set(remove)
# and print them
for name in sorted(depending):
    print('* %s' % name)
</pre>
<pre>$ python deps.py createrepo yum yum-langpacks yum-utils yum-metadata-parser yum-updatesd python-urlgrabber</pre>


== Contingency Plan ==
== Contingency Plan ==

Revision as of 15:47, 23 January 2019


Deprecate YUM 3

Summary

Remove yum (v3) and all related packages from Fedora.

Owner

  • Name: Daniel Mach
  • Email: dmach@redhat.com
  • Release notes owner:

Current status

  • Targeted release: Fedora 30
  • Last updated: 2019-01-23
  • Tracker bug: <will be assigned by the Wrangler>

Detailed Description

Remove packages from the distribution:

  • createrepo
  • yum
  • yum-langpacks
  • yum-utils
  • yum-metadata-parser
  • yum-updatesd
  • python-urlgrabber

All these packages should no longer be used and all software using them should be migrated to DNF.

Compatibility:

  • Important packages such as yum, createrepo or yum-utils will be provided/obsoleted by relevant packages from the dnf stack
  • Important executables such yum, repoquery, createrepo, etc. will be provided either as new executables or via symlinks

Benefit to Fedora

Drop an old package manager that has no active upstream development. Move existing users to DNF which that has active development. Secondary benefit is reducing number of packages in Fedora that still depend on Python 2.

Scope

  • Proposal owners: Remove packages from the distribution: createrepo, yum, yum-langpacks, yum-utils, yum-metadata-parser, python-urlgrabber
  • Other developers: Either remove packages from the distribution or switch them to DNF
  • Release engineering: #7588
  • Policies and guidelines: N/A
  • Trademark approval: N/A (not needed for this Change)

Upgrade/compatibility impact

Any tool based on YUM 3 Python API will stop working. This applies on any 3rd party software which won't be changed in Fedora as part of this change. CLI compatibility will be provided by DNF.

How To Test

Repoclosure passes after dropping the packages.

User Experience

There shouldn't be any impact on YUM users because the functionality is provided by DNF already. Users of tools listed in the Dependencies section shouldn't see any difference if the migration to DNF is done properly.

Dependencies

The list of source packages (SRPMs) that still depend on some of the yum-related packages to be removed:

# SRPM name:
#   bugzilla: link to BZ requesting the maintainer to port their project to DNF
#   requires: which of the yum-related packages this SRPM requires
#   rpms: list of binary RPMs affected

appliance-tools:
  bugzilla: null
  requires:
  - python2-urlgrabber
  rpms:
  - appliance-tools
cas:
  bugzilla: null
  requires:
  - python2-urlgrabber
  rpms:
  - cas
cobbler:
  bugzilla: null
  requires:
  - createrepo
  - python2-urlgrabber
  rpms:
  - cobbler
  - koan
ddiskit:
  bugzilla: null
  requires:
  - createrepo
  rpms:
  - ddiskit
diskimage-builder:
  bugzilla: null
  requires:
  - yum-utils
  rpms:
  - diskimage-builder
dlrn:
  bugzilla: null
  requires:
  - createrepo
  rpms:
  - python2-dlrn
  - python3-dlrn
dnf-plugins-core:
  bugzilla: null
  requires:
  - yum
  rpms:
  - python2-dnf-plugin-migrate
fusioninventory-agent:
  bugzilla: null
  requires:
  - yum
  rpms:
  - fusioninventory-agent-yum-plugin
grinder:
  bugzilla: null
  requires:
  - createrepo
  rpms:
  - grinder
imagefactory:
  bugzilla: null
  requires:
  - python2-urlgrabber
  rpms:
  - imagefactory
kiwi:
  bugzilla: null
  requires:
  - yum
  rpms:
  - kiwi-systemdeps
koji:
  bugzilla: null
  requires:
  - createrepo
  rpms:
  - koji-builder
koji-containerbuild:
  bugzilla: null
  requires:
  - python2-urlgrabber
  rpms:
  - koji-containerbuild-builder
mach:
  bugzilla: null
  requires:
  - createrepo
  - yum
  rpms:
  - mach
mash:
  bugzilla: null
  requires:
  - createrepo
  - yum
  rpms:
  - mash
nagios-plugins-check-updates:
  bugzilla: null
  requires:
  - yum
  rpms:
  - nagios-plugins-check-updates
osc:
  bugzilla: null
  requires:
  - python2-urlgrabber
  rpms:
  - osc
perl-Fedora-Rebuild:
  bugzilla: null
  requires:
  - createrepo
  rpms:
  - perl-Fedora-Rebuild
plague:
  bugzilla: null
  requires:
  - createrepo
  rpms:
  - plague
pulp-rpm:
  bugzilla: null
  requires:
  - createrepo
  - yum
  rpms:
  - pulp-rpm-plugins
  - pulp-rpm-yumplugins
repo_manager:
  bugzilla: null
  requires:
  - createrepo
  rpms:
  - repo_manager
repoview:
  bugzilla: null
  requires:
  - yum
  rpms:
  - repoview
rpm-ostree-toolbox:
  bugzilla: null
  requires:
  - python2-urlgrabber
  rpms:
  - rpm-ostree-toolbox
sigul:
  bugzilla: null
  requires:
  - python2-urlgrabber
  rpms:
  - sigul-bridge
snake:
  bugzilla: null
  requires:
  - yum
  rpms:
  - snake
system-config-kickstart:
  bugzilla: null
  requires:
  - yum
  rpms:
  - system-config-kickstart
yum-axelget:
  bugzilla: null
  requires:
  - yum
  - yum-plugin-fastestmirror
  rpms:
  - yum-axelget
yum-rhn-plugin:
  bugzilla: null
  requires:
  - yum
  rpms:
  - yum-rhn-plugin

Updated: 2019-01-23

Generated with: https://gist.github.com/dmnks/787b121503ba1e9d1565d58b4a4e3a62

$ python3 deps.py createrepo yum yum-langpacks yum-utils yum-metadata-parser yum-updatesd python-urlgrabber

Contingency Plan

  • Contingency mechanism: Do not remove the packages in the current release.
  • Contingency deadline: Beta Freeze
  • Blocks release? No
  • Blocks product? No

Documentation

N/A

Release Notes

Inform end-users about removing the YUM 3 stack and definitive migration to DNF.