Browse - Computer Tips - RedHat: Remove all desktop packages (for headless operation)
Q. RedHat: Remove all desktop packages (for headless operation)
A. This isn't official but it works.
dnf remove `rpm -qa | grep desktop`
We search for all packages with "desktop" in their name.
Then remove them and everything that depends on them.
When I run this command I get:
Remove 702 Packages
Freed space: 2.6 G
Is this ok [y/N]: