Skip to content

Instantly share code, notes, and snippets.

@junwatu
Last active August 29, 2015 14:23
Show Gist options
  • Save junwatu/a0cdfd6799bf8c9fc3af to your computer and use it in GitHub Desktop.
Save junwatu/a0cdfd6799bf8c9fc3af to your computer and use it in GitHub Desktop.
Raspberry Pi Wheezy to Jessie

#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
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment