Skip to content

Fix yum package removal on RHEL 7 - #555

Merged
Dany9966 merged 1 commit into
cloudbase:mainfrom
mihaelabalutoiu:fix-yum-remove-noautoremove
Nov 3, 2026
Merged

Dany9966 merged 1 commit into
cloudbase:mainfrom
mihaelabalutoiu:fix-yum-remove-noautoremove

Conversation

@mihaelabalutoiu

Copy link
Copy Markdown
Member

Osmorphing fails on RHEL 7 because --noautoremove, introduced in 0be68d0, is supported by DNF but not YUM 3:

Command line error: no such option: --noautoremove

Replace it with --setopt=clean_requirements_on_remove=0, which both YUM 3 and DNF support.

YUM 3 rejects the DNF-only `--noautoremove` option, which broke
osmorphing on RHEL 7. Use `--setopt=clean_requirements_on_remove=0`,
which works on both.

Signed-off-by: Mihaela Balutoiu <mbalutoiu@cloudbasesolutions.com>
@mihaelabalutoiu
mihaelabalutoiu marked this pull request as draft November 2, 2026 09:17
@mihaelabalutoiu
mihaelabalutoiu marked this pull request as ready for review November 2, 2026 14:25
@Dany9966
Dany9966 merged commit 085b401 into cloudbase:main Nov 3, 2026
5 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants