Improve cleaning of unwanted X11 packages
This commit is contained in:
parent
150e198ae8
commit
4835bc811e
|
@ -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
|
||||
|
|
Loading…
Reference in New Issue