solaris# rm -rf gui

I’ve several Solaris 10 boxes wrongly configured during the setup and the graphical environment was installed… (Gnome, CDE, …) As they’ll be used as servers in a colocation, no need to keep disks full of unwanted files!

I quickly googled for an existing script or tool but nothing relevant was found. I decided to remove the packages one by one, checking dependencies. I’ve now a list of packages which can be safely removed.

The packages list is available here.

To remove them, use the following command:

# cat gnome-cde-pkgs.txt | xargs -t /usr/sbin/pkgrm -v

Warning!
This list has been build on a Solaris 10 Generic 3/05.
Use it at your own risks!