base_role/overlay/Devuan/usr/local/sbin/de_unmarkauto.bash

12 lines
230 B
Bash
Raw Normal View History

2024-01-06 01:38:28 +00:00
#!/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