From Fedora Project Wiki
m
(https://pagure.io/fesco/issue/1936)
Line 174: Line 174:
 
Inform end-users about removing the YUM 3 stack and definitive migration to DNF.
 
Inform end-users about removing the YUM 3 stack and definitive migration to DNF.
  
[[Category:ChangeAnnounced]]
+
[[Category:ChangeReadyForFesco]]
 
<!-- When your change proposal page is completed and ready for review and announcement -->
 
<!-- When your change proposal page is completed and ready for review and announcement -->
 
<!-- remove Category:ChangePageIncomplete and change it to Category:ChangeReadyForWrangler -->
 
<!-- remove Category:ChangePageIncomplete and change it to Category:ChangeReadyForWrangler -->

Revision as of 05:59, 4 July 2018


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 29
  • Last updated: 2018-07-04
  • Tracker bug: <will be assigned by the Wrangler>

Detailed Description

Remove packages from the distribution:

  • createrepo
  • yum
  • yum-langpacks
  • yum-utils
  • yum-metadata-parser
  • 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 packages that still depend on some of the yum-related packages to be removed:

  • cobbler
  • ddiskit
  • diskimage-builder
  • dlrn
  • dnf-plugins-core
  • fusioninventory-agent
  • grinder
  • imgbased
  • kiwi
  • koji
  • koji-containerbuild
  • libtaskotron
  • lpf
  • mach
  • mash
  • mirrormanager
  • nagios-plugins-check-updates
  • osc
  • perl-Fedora-Rebuild
  • plague
  • pulp-rpm
  • repo_manager
  • repoview
  • retrace-server
  • rpm-ostree-toolbox
  • sigul
  • snake
  • system-config-kickstart
  • yum-axelget
  • yum-rhn-plugin
  • yum-updatesd

Generated with:

deps.py:

import os
import sys
import shlex
from subprocess import check_output
from rpmUtils.miscutils import splitFilename

# SRPMs to remove
remove = sys.argv[1:]

# Gather the list of depending SRPMs
depending = set()
args = shlex.split('repoquery --source --whatrequires') + remove
output = check_output(args, stderr=open(os.devnull, 'w'))
for line in output.splitlines():
    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 n in sorted(depending):
    print('* %s' % n)
$ python deps.py createrepo yum yum-langpacks yum-utils yum-metadata-parser 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.