Remove X11 support if unwanted
This commit is contained in:
parent
96d1db0a87
commit
01d861ad4e
Binary file not shown.
|
@ -36,20 +36,19 @@ aptitude -y install dbus libpam-systemd
|
|||
aptitude -y remove nfs-common rpcbind
|
||||
|
||||
### Documentation {{{
|
||||
# Remove task-french
|
||||
if [ "$(dpkg -l task-french)" ]; then
|
||||
# Move default wordlist to american before remove all packages
|
||||
select-default-wordlist --set-default=american
|
||||
aptitude -y remove task-french
|
||||
|
||||
# Reinstall useful french doc and move back to french dict
|
||||
aptitude -y install aspell-fr doc-debian-fr doc-linux-fr-text ifrench-gut manpages-fr manpages-fr-extra wfrench
|
||||
select-default-wordlist --set-default=".*(F|f)rench.*"
|
||||
fi
|
||||
|
||||
# Remove task-english
|
||||
if [ "$(dpkg -l task-english)" ]; then
|
||||
# If no X display is expected
|
||||
if [ ! "$(dpkg -l xorg)" ]; then
|
||||
## Remove unwanted x11 lib
|
||||
aptitude -y remove libx11-6 libx11-data libxau6 libxcb1 libxdmcp6 libxext6 libxmuu1 xauth
|
||||
if [ "$(dpkg -l task-english)" ]; then
|
||||
## Remove task-english
|
||||
aptitude -y remove task-english iamerican ibritish ienglish-common ispell util-linux-locales wamerican
|
||||
fi
|
||||
else
|
||||
if [ "$(dpkg -l task-english)" ]; then
|
||||
## Remove task-english
|
||||
aptitude -y remove task-english
|
||||
fi
|
||||
fi
|
||||
|
||||
# Ensure to have minimal documentation
|
||||
|
|
Loading…
Reference in New Issue