Permalink
Browse files

Use sudo to remove packages

yum and others need root to remove packages

Change-Id: I556505636c41296f9188c248dff13b85616c667c
  • Loading branch information...
1 parent e4f0cd7 commit 2c678ccf632ed17fde609c210dcb698e08f5395c @ianw ianw committed Mar 20, 2013
Showing with 2 additions and 2 deletions.
  1. +2 −2 functions
View
@@ -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

0 comments on commit 2c678cc

Please sign in to comment.