yum and others need root to remove packages
Change-Id: I556505636c41296f9188c248dff13b85616c667c
| ... | ... |
@@ -781,9 +781,9 @@ function uninstall_package() {
|
| 781 | 781 |
if is_ubuntu; then |
| 782 | 782 |
apt_get purge "$@" |
| 783 | 783 |
elif is_fedora; then |
| 784 |
- yum remove -y "$@" |
|
| 784 |
+ sudo yum remove -y "$@" |
|
| 785 | 785 |
elif is_suse; then |
| 786 |
- rpm -e "$@" |
|
| 786 |
+ sudo rpm -e "$@" |
|
| 787 | 787 |
else |
| 788 | 788 |
exit_distro_not_supported "uninstalling packages" |
| 789 | 789 |
fi |