Hide Forgot
Description of problem: I know it is a little bit corner case to still use yum-deprecated but it is done for historical reasons. And I would appreciate if it still works. At least in the same way as weak dependencies. IIUC weak dependencies are ignored by yum-deprecated. Version-Release number of selected component (if applicable): sh# rpm -q yum yum-3.4.3-515.fc28.noarch How reproducible: Deterministic Steps to Reproduce: 1. docker run -ti --rm docker.io/fedora:26 bash // run rest of commands within in contianer 2. dnf install -y --setopt=debuglevel=0 --setopt=errorlevel=0 --nogpgcheck yum fedora-repos-rawhide 3. yum-deprecated --disablerepo=* --enablerepo=rawhide update dnf // previous "magic dancing" steps were required because I was not able to have // older dnf with yum in the same time in rawhide container. Actual results: [root@3121dcf36c66 /]# yum-deprecated --disablerepo=* --enablerepo=rawhide update dnf Yum command has been deprecated, use dnf instead. See 'man dnf' and 'man yum2dnf' for more information. Resolving Dependencies --> Running transaction check ---> Package dnf.noarch 0:2.5.1-1.fc26 will be updated --> Processing Dependency: dnf = 2.5.1-1.fc26 for package: dnf-yum-2.5.1-1.fc26.noarch ---> Package dnf.noarch 0:2.6.3-7.fc28 will be an update Error: Invalid version flag: if Expected results: Package upgraded without any problem Additional info: //following outputis from rawhide machine and not for previous simpler reproducer. [root@vm-122 ~]# yum-deprecated update --setopt=debuglevel=5 --setopt=errorlevel=2 dnf Yum command has been deprecated, use dnf instead. See 'man dnf' and 'man yum2dnf' for more information. Config time: 0.011 Ignored option -q, -v, -d or -e (probably due to merging: -yq != -y -q) Yum version: 3.4.3 rpmdb time: 0.000 Setting up Package Sacks pkgsack time: 0.022 Building updates object up:Obs Init time: 0.436 up:simple updates time: 0.013 up:obs time: 0.020 up:condense time: 0.000 updates time: 1.824 Not Updating Package that is already updated: dnf.noarch 0:2.6.3-4.fc28 Not Updating Package that is already updated: dnf.noarch 0:2.6.3-4.fc28 Resolving Dependencies --> Running transaction check ---> Package dnf.noarch 0:2.6.3-4.fc28 will be updated Checking deps for dnf.noarch 0:2.6.3-4.fc28 - ud dnf-yum-2.6.3-4.fc28.noarch requires: dnf = 2.6.3-4.fc28 --> Processing Dependency: dnf = 2.6.3-4.fc28 for package: dnf-yum-2.6.3-4.fc28.noarch Potential Provider: dnf.noarch 0:2.6.3-4.fc28 Mode is ud for provider of dnf = 2.6.3-4.fc28: dnf.noarch 0:2.6.3-4.fc28 Mode for pkg providing dnf = 2.6.3-4.fc28: ud Trying to update dnf-yum-2.6.3-4.fc28.noarch to resolve dep ---> Package dnf.noarch 0:2.6.3-7.fc28 will be an update Checking deps for dnf.noarch 0:2.6.3-7.fc28 - u looking for ('python3-dnf', 'EQ', ('0', '2.6.3', '7.fc28')) as a requirement of dnf.noarch 0:2.6.3-7.fc28 - u looking for ('(python3-dbus if NetworkManager)', None, (None, None, None)) as a requirement of dnf.noarch 0:2.6.3-7.fc28 - u Error: Invalid version flag: if
Yum doesn't work with rich dependencies and never will.... We are actually planning to retire it ;)
Have you consider ignoring/skipping rich dependencies in yum?
(In reply to Lukas Slebodnik from comment #2) > Have you consider ignoring/skipping rich dependencies in yum? What's the point? In this case, use rpm --nodeps.
(In reply to Igor Gnatenko from comment #3) > (In reply to Lukas Slebodnik from comment #2) > > Have you consider ignoring/skipping rich dependencies in yum? > > What's the point? The point is to ignore rich dependencies the same as weak dependencies are ignored.
(In reply to Lukas Slebodnik from comment #4) > (In reply to Igor Gnatenko from comment #3) > > (In reply to Lukas Slebodnik from comment #2) > > > Have you consider ignoring/skipping rich dependencies in yum? > > > > What's the point? > > The point is to ignore rich dependencies the same as weak dependencies are > ignored. Weak dependencies are not ignored, they are installed same way as Requires. Probably you are talking about reverse weak dependencies, those are ignored yes. But ignoring dependencies in Requires is wrong. Also, even yum will ignore them RPM will not. And your transaction will fail anyway.
What would be grand is if we errored out with a nice error message explaining things (need to use/install dnf, etc.) as opposed to 'Error: Invalid version flag: if'