12 lines
230 B
Bash
12 lines
230 B
Bash
|
#!/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
|