printf 'checking if installed … '
if dpkg-query -Wf '${Package}\n' | grep '^'"${_PACKAGE}"'$' > /dev/null; then
echo 'yup, keeping!'
- ${_INSTALL_CMD} ${_PACKAGE}
+ apt_get_digested '-q -q -o "Dpkg::Options::=--force-confnew" install' "${_PACKAGE}"
else
echo 'nope, nothing to keep.'
fi
echo 'nothing to install.'
else
echo "ensuring installation of: ${_PACKAGES}"
- ${_INSTALL_CMD} ${_PACKAGES}
+ apt_get_digested '-q -q -o "Dpkg::Options::=--force-confnew" install' "${_PACKAGES}"
fi
done
prefixed_msg 'finished'