base_role/overlay/Devuan/usr/local/sbin/de_unmarkauto.bash
embed@git.macaw.me b50fd16591 first
2024-01-06 01:38:28 +00:00

12 lines
230 B
Bash
Executable File

#!/bin/sh
ROLE=base
[ $# -eq 0 ] && exit 1
apt-get remove $* </dev/null | \
sed -e '1,/The following packages will be REMOVED:/d' \
-e '/^WARNING:/,' -e 's/ /\n/g' | while read foo; do\
aptitude unmarkauto $foo ;
done