Skip to content

Instantly share code, notes, and snippets.

@phatz
Forked from gismo141/remove_gui_from_debian.sh
Created December 25, 2022 12:11
Show Gist options
  • Save phatz/98f951752757ee7aa1eaf9d0dd18f4e7 to your computer and use it in GitHub Desktop.
Save phatz/98f951752757ee7aa1eaf9d0dd18f4e7 to your computer and use it in GitHub Desktop.
Remove all GUI-related Packages from Existing Debian-Installation
apt-get remove -y --purge x11-common
apt-get autoremove -y --purge
apt-get install -y deborphan
deborphan | xargs dpkg -P # do this a bunch of times
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment