From 4835bc811e120136dc8c4783d59739877d56a0b6 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Gardais=20J=C3=A9r=C3=A9my?= Date: Fri, 12 Nov 2021 11:27:56 +0100 Subject: [PATCH] Improve cleaning of unwanted X11 packages --- scripts/latecommand/post.bullseye.sh | 12 ++++++++++-- 1 file changed, 10 insertions(+), 2 deletions(-) diff --git a/scripts/latecommand/post.bullseye.sh b/scripts/latecommand/post.bullseye.sh index 44cc76f..91442d1 100755 --- a/scripts/latecommand/post.bullseye.sh +++ b/scripts/latecommand/post.bullseye.sh @@ -40,8 +40,16 @@ aptitude -y remove vim-tiny # 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 + ## Remove unwanted x11 libs and packages + aptitude --assume-yes remove -- libgl1 libglx-mesa0 libglx0 libice6 libsm6 \ + libx11-6 libx11-data libx11-xcb1 libxau6 libxaw7 libxcb-dri2-0 libxcb-dri3-0 \ + libxcb-glx0 libxcb-present0 libxcb-shape0 libxcb-shm0 libxcb-sync1 \ + libxcb-xfixes0 libxcb1 libxcomposite1 libxcursor1 libxdamage1 libxdmcp6 \ + libxext6 libxfixes3 libxft2 libxi6 libxinerama1 libxkbfile1 libxmu6 libxmuu1 \ + libxpm4 libxrandr2 libxrender1 libxt6 libxtst6 libxv1 libxxf86dga1 \ + libxxf86vm1 x11-apps x11-common x11-session-utils x11-utils x11-xkb-utils \ + x11-xserver-utils xauth xbase-clients xinit + if [ "$(dpkg -l task-english)" ]; then ## Remove task-english aptitude -y remove task-english iamerican ibritish ienglish-common ispell util-linux-locales wamerican