From 2c678ccf632ed17fde609c210dcb698e08f5395c Mon Sep 17 00:00:00 2001 From: Ian Wienand Date: Wed, 20 Mar 2013 13:00:44 +1100 Subject: [PATCH] Use sudo to remove packages yum and others need root to remove packages Change-Id: I556505636c41296f9188c248dff13b85616c667c --- functions | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/functions b/functions index 0bbf477fa9..edc4bf9aef 100644 --- a/functions +++ b/functions @@ -781,9 +781,9 @@ function uninstall_package() { if is_ubuntu; then apt_get purge "$@" elif is_fedora; then - yum remove -y "$@" + sudo yum remove -y "$@" elif is_suse; then - rpm -e "$@" + sudo rpm -e "$@" else exit_distro_not_supported "uninstalling packages" fi