Remove X11 support if unwanted

This commit is contained in:
Jeremy Gardais 2019-03-05 19:07:19 +01:00
parent 96d1db0a87
commit 01d861ad4e
Signed by: jegardai
GPG Key ID: E759BAA22501AF32
2 changed files with 13 additions and 14 deletions

Binary file not shown.

View File

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