Remove GUI from Raspbian
If your Raspbian image came pre-installled with X.org and GUI components you may want to remove them to free up some space on your partition. It's quite easy to do and highlights some useful commands:
Test the process with --dry-run (no changes are actually made to the system):
apt-get remove --dry-run --purge libx11-.*
List desktop related packages:
dpkg -l | grep -i lxde
Remove all X.org related packages and their config files:
sudo apt-get remove --purge libx11-.*
Remove no longer needed dependencies:
sudo apt-get autoremove --purge
Clean the apt cache:
sudo apt-get autoclean
After doing the above I recovered about 2.3 gigabytes of disk space.
Further reading
Trackbacks
The author does not allow comments to this entry
Comments
Display comments as Linear | Threaded
Sylvester on :