From d1de5c64fe3a151104b03082746839c39c77ae5c Mon Sep 17 00:00:00 2001 From: Stanislas Lange Date: Wed, 10 Mar 2021 21:46:52 +0100 Subject: [PATCH] apt: use remove instead of autoremove Close https://github.com/angristan/openvpn-install/issues/794 --- openvpn-install.sh | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/openvpn-install.sh b/openvpn-install.sh index da252e1..d479cfd 100755 --- a/openvpn-install.sh +++ b/openvpn-install.sh @@ -1186,7 +1186,7 @@ function removeUnbound() { systemctl stop unbound if [[ $OS =~ (debian|ubuntu) ]]; then - apt-get autoremove --purge -y unbound + apt-get remove --purge -y unbound elif [[ $OS == 'arch' ]]; then pacman --noconfirm -R unbound elif [[ $OS =~ (centos|amzn) ]]; then @@ -1249,7 +1249,7 @@ function removeOpenVPN() { fi if [[ $OS =~ (debian|ubuntu) ]]; then - apt-get autoremove --purge -y openvpn + apt-get remove --purge -y openvpn if [[ -e /etc/apt/sources.list.d/openvpn.list ]]; then rm /etc/apt/sources.list.d/openvpn.list apt-get update