#Wheezy
##Remove Desktop Environment
To remove all desktops I just did (go make a pot of coffee. Take a walk this will take a while)
$ sudo apt-get remove --auto-remove --purge libx11-.*
Installed deborphan to get rid of orphaned files
$ sudo apt-get install deborphan
If you want to see what has been orphaned do this
$ deborphan -sz
Removed all orphaned files
$ sudo apt-get remove --purge $(deborphan)
Remove the unnecessary packages that are not orphaned
$ sudo apt-get autoremove
#Upgrade To Jessie
Update existing package first
$ sudo apt-get update
$ sudo apt-get upgrade
$ sudo apt-get dist-upgrade
Update apt sources list
$ sed -i 's/wheezy/jessie/g' /etc/apt/sources.list
The content of sources.list
now updated to
deb http://mirrordirector.raspbian.org/raspbian jessie main firmware contrib non-free
Do upgrade
$ sudo apt-get update
$ sudo apt-get upgrade
$ sudo apt-get dist-upgrade
Grab cups of coffee or watch an hour movie then reboot
$ reboot