[lxc-devel] [distrobuilder/master] managers/yum: Pass "--allowerasing" flag

monstermunchkin on Github lxc-bot at linuxcontainers.org
Wed Jul 8 14:36:20 UTC 2020


A non-text attachment was scrubbed...
Name: not available
Type: text/x-mailbox
Size: 310 bytes
Desc: not available
URL: <http://lists.linuxcontainers.org/pipermail/lxc-devel/attachments/20200708/f599ddba/attachment.bin>
-------------- next part --------------
From 075be6c56d4a27b93f83cd8dec44e0c885a4425c Mon Sep 17 00:00:00 2001
From: Thomas Hipp <thomas.hipp at canonical.com>
Date: Wed, 8 Jul 2020 16:28:15 +0200
Subject: [PATCH] managers/yum: Pass "--allowerasing" flag

Taken from the man page:

    Allow erasing of installed packages to resolve dependencies.
    This option could be used as an alternative to the yum swap
    command where packages to remove are not explicitly defined.

Signed-off-by: Thomas Hipp <thomas.hipp at canonical.com>
---
 managers/yum.go | 1 +
 1 file changed, 1 insertion(+)

diff --git a/managers/yum.go b/managers/yum.go
index f18f6a5..d93a1c5 100644
--- a/managers/yum.go
+++ b/managers/yum.go
@@ -27,6 +27,7 @@ func NewYum() *Manager {
 			},
 			global: []string{
 				"-y",
+				"--allowerasing",
 			},
 			install: []string{
 				"install",


More information about the lxc-devel mailing list