Updating the RPi Software
Assuming you're using the debian image, updating to the latest version of all the software installed on your RPi can be achieved by running the following from the command line.
sudo apt-get update
This command updates the repository cache.
To install the lateest builds code:
sudo apt-get upgrade