if [ ! -f "${_PATH_APTMARK_TAG}" ]; then
continue
fi
+ printf 'Ensuring installation of: '
cat "${_PATH_APTMARK_TAG}" | while read _LINE; do
if [ ! $(echo "${_LINE}" | cut -c1) = "#" ]; then
+ echo -n "${_LINE} "
apt-get -y -o Dpkg::Options::="--force-confnew" install "${_LINE}" > /dev/null
fi
done
+ echo ''
done
}
dpkg-query -Wf '${Package}\n' > "${PATH_LIST_UNSORTED}"
sort "${PATH_LIST_UNSORTED}" | uniq > "${PATH_LIST_ALL_PACKAGES}"
comm -3 "${PATH_LIST_ALL_PACKAGES}" "${PATH_LIST_WHITE}" > "${PATH_LIST_BLACK}"
- apt-mark auto `cat "${PATH_LIST_BLACK}"`
+ apt-mark auto `cat "${PATH_LIST_BLACK}"` > /dev/null
rm "${PATH_LIST_UNSORTED}" "${PATH_LIST_ALL_PACKAGES}" "${PATH_LIST_WHITE}" "${PATH_LIST_BLACK}"
# before purging, ensure tagged packages installed
ensure_packages_of_tags $@
+ echo "Autoremove and purge …"
apt -y --purge autoremove > /dev/null
+ echo "And now: dist-upgrade …"
apt -y dist-upgrade > /dev/null
}