Uninstall debian desktop enviorment
Have you installed a desktop environment on Debian that you no longer need? Whether you’re looking to free up space or want to use a minimal install without a GUI, this guide will walk you through the steps to uninstall the desktop environment on Debian.
Step-by-Step Guide to Uninstall Desktop Environment
1. Check Packages Related to Desktop Environment
Firstly, you can identify the packages related to the desktop environment using the following command:
1 | # check package related to desktop |
2. Uninstall the Desktop Environment Packages
You can then use apt-get purge to remove all the packages related to the desktop environment. This can be done efficiently by combining the output from the previous command:
1 | apt-get purge $(tasksel --task-packages desktop) |
Alternatively, you might consider a more comprehensive removal using the following command:
1 | apt purge task-desktop hyphen-en-us libglu1-mesa libreoffice-* libu2f-udev mythes-en-us x11-apps x11-session-utils xinit xorg xserver-* desktop-base task-german task-german-desktop totem gedit gedit-common gir1.2-* gnome-* gstreamer* sound-icons speech-dispatcher totem-common xserver-* xfonts-* xwayland gir1.2* gnome-* |
3. Autoremove Unnecessary Packages
After purging, you should also run apt autoremove –purge to clean up any remaining dependencies that were automatically installed with the desktop environment and are no longer needed:
1 | apt autoremove --purge |
By following these steps, you can successfully remove the desktop environment from your Debian system, leaving you with a leaner and more minimal setup.