add "apt_remove" in lib/utils.sh

in order to manage DEBIAN_FRONTEND
This commit is contained in:
damien cavagnini
2025-07-22 10:45:58 +02:00
parent 4b9e7d0b33
commit 1bf6cabc89

View File

@@ -584,6 +584,12 @@ apt_install() {
FNRET=0
}
apt_remove() {
local PACKAGE=$1
DEBIAN_FRONTEND='noninteractive' apt-get remove -y "$PACKAGE"
FNRET=0
}
#
# Returns if a package is installed
#