Remove Desktop and X from Raspberry Pi Raspbian

From ETCwiki
Revision as of 00:19, 12 August 2013 by Ddxfish (talk | contribs)
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to navigationJump to search

If you want to NEVER boot into desktop and not have to back up those packages every time and worry about updates for them, this is the command for you. My guides will never use the Raspberry Pi desktop. This step is not essential to follow my or any guides I know of but will simplify some types of jobs like backups. It will remove Xserver, libx11 and ALL packages that depend on it. This means removing the ability to boot into desktop! You can try to put it back on but in my opinion this is a one way journey.

Notes:

  • this command can trigger some major package changes on your system
  • for me it removed MPD and a few other packages
  • all I had to do was reinstall the packages (config files were never removed)

proceed at your own risk - one way journey

apt-get remove xserver* x11-common x11-utils x11-xkb-utils x11-xserver-utils xarchiver xauth xkb-data console-setup xinit lightdm libx{composite,cb,cursor,damage,dmcp,ext,font,ft,i,inerama,kbfile,klavier,mu,pm,randr,render,res,t,xf86}* lxde* lx{input,menu-data,panel,polkit,randr,session,session-edit,shortcut,task,terminal} obconf openbox gtk* libgtk* scratch tsconf xdg-tools desktop-file-utils
apt-get --yes autoremove
apt-get --yes autoclean
apt-get --yes clean