Updating and upgrading your SD card
Keeping the software on your SD card up to date is a good starting point for any project and is very simple to do. Your Raspberry Pi will need to be connected to the internet via an Ethernet cable or WiFi in order for these steps to work.
You'll need to type a command into a terminal window once you have logged into your Pi.
Open a terminal window by clicking on Main Menu, Accessories, and Terminal. Alternatively, you can click on the terminal icon in the taskbar.
Next, type the following:
sudo apt-get update
Press Enter on the keyboard.
You will see some text appear very quickly. Simply wait for the progress indicator at the bottom to reach 100% and then you'll be returned to the command line prompt.
Once the update process is complete, and any information about new versions of applications is downloaded, you'll need to install the upgrades.
In a terminal window, type:
sudo apt-get upgrade
- Press Y or Enter on the keyboard when prompted and your upgrades will be installed.
Checking space on an SD card
sudo apt-get upgrade, it will show how much data will be downloaded and how much space it will take up on the SD card. It's worth checking with
df -h to ensure that you have enough disk space free, as unfortunately
apt will not do this for you. Also be aware that downloaded package files (.deb files) are kept in
/var/cache/apt/archives. You can remove these with
sudo apt-get clean in order to free up space.