Add apt_purge function to remove packages

This commit is contained in:
dkoao 2019-09-27 16:41:01 +00:00
parent d8c4cf2b28
commit 5cafd91c66
1 changed files with 6 additions and 0 deletions

View File

@ -47,6 +47,12 @@ function apt_get_quiet {
DEBIAN_FRONTEND=noninteractive hide_output apt-get -y -o Dpkg::Options::="--force-confdef" -o Dpkg::Options::="--force-confnew" "$@"
}
function apt_purge {
# Remove a bunch of packages.
PACKAGES=$@
apt_get_quiet --purge remove $PACKAGES
}
function apt_install {
# Install a bunch of packages. We used to report which packages were already
# installed and which needed installing, before just running an 'apt-get