Skip to content

Instantly share code, notes, and snippets.

@gismo141
Last active November 17, 2025 16:50
Show Gist options
  • Select an option

  • Save gismo141/10656617 to your computer and use it in GitHub Desktop.

Select an option

Save gismo141/10656617 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
@eike-fokken
Copy link

Thanks a lot!

@javieitez
Copy link

Looking for this... Thank you!!

@gismo141
Copy link
Author

@eike-fokken and @javieitez you are welcome – I am glad it helped you!

@dmsweetser
Copy link

Most excellent - thank you!!!

@The-Judge
Copy link

Hero!

@dotpointer
Copy link

But deborphan has been removed in Debian 13 Trixie, so this does not work anymore, read this:
https://www.debian.org/releases/trixie/release-notes/issues.cs.html

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment