Use sudo to remove packages
yum and others need root to remove packages Change-Id: I556505636c41296f9188c248dff13b85616c667c
This commit is contained in:
parent
e4f0cd7eed
commit
2c678ccf63
@ -781,9 +781,9 @@ function uninstall_package() {
|
|||||||
if is_ubuntu; then
|
if is_ubuntu; then
|
||||||
apt_get purge "$@"
|
apt_get purge "$@"
|
||||||
elif is_fedora; then
|
elif is_fedora; then
|
||||||
yum remove -y "$@"
|
sudo yum remove -y "$@"
|
||||||
elif is_suse; then
|
elif is_suse; then
|
||||||
rpm -e "$@"
|
sudo rpm -e "$@"
|
||||||
else
|
else
|
||||||
exit_distro_not_supported "uninstalling packages"
|
exit_distro_not_supported "uninstalling packages"
|
||||||
fi
|
fi
|
||||||
|
Loading…
Reference in New Issue
Block a user