diff --git a/vmupdate/agent/source/dnf/dnf_cli.py b/vmupdate/agent/source/dnf/dnf_cli.py index fbff8ab..2664e0b 100644 --- a/vmupdate/agent/source/dnf/dnf_cli.py +++ b/vmupdate/agent/source/dnf/dnf_cli.py @@ -95,7 +95,7 @@ def get_action(self, remove_obsolete) -> List[str]: Disable or enforce obsolete flag in dnf/yum. """ if remove_obsolete: - return ["-y", "--obsoletes", "upgrade"] + return ["-y", "--setopt=obsoletes=1", "upgrade"] return ["-y", "--setopt=obsoletes=0", "upgrade" if self.package_manager == "dnf" else "update"]