home · contact · privacy
Improve w530 bookworm setup.
[config] / bookworm / setup_scripts / purge_nonrequireds.sh
index 216779d6af220d60e4e20660cf56edcc4a93736a..48065fc68bcc0eb417301a6fea1159638e5fa66c 100755 (executable)
@@ -3,10 +3,9 @@
 # "required" or not depended on by packages of priority "required"
 # or not listed in the argument-selected files of apt-mark/.
 set -e
-debian_version="bookworm"
+. ./misc.sh
 
-config_tree_prefix="${HOME}/config/${debian_version}"
-aptmark_dir="${config_tree_prefix}/apt-mark"
+# FIXME packages listed twice in the aptmark_dir get blacklisted?
 
 dpkg-query -Wf '${Package} ${Priority}\n' | grep ' required' | sed 's/ required//' > /tmp/list_white_unsorted
 for target in "$@"; do