Set up your Raspberry Pi
After installing an operating system image, connect your storage device to your Raspberry Pi.
First, unplug your Raspberry Pi’s power supply to ensure that the Raspberry Pi is powered down while you connect peripherals.
If you installed the operating system on a microSD card, you can plug it into your Raspberry Pi’s card slot now. If you installed the operating system on any other storage device, you can connect it to your Raspberry Pi now.
In our case, we used a flash USB storage.
Using APT
The easiest way to manage installing, upgrading, and removing software is using APT (Advanced Packaging Tool) from Debian.
To update software in Raspberry Pi OS, you can use the apt
tool from a Terminal window.
APT keeps a list of software sources on your Raspberry Pi in a file at /etc/apt/sources.list
.
Before installing software, you should update your package list with apt update
. Open a Terminal window and type
Next, upgrade all your installed packages to their latest versions with the following command:
Running out of space
When running sudo apt full-upgrade
, it will show how much data will be downloaded, and how much space it will take up on your storage.
It’s worth checking with df -h
that you have enough free disk space, 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 in order to free up space with sudo apt clean
(sudo apt-get clean
in older releases of apt).
Last updated
Was this helpful?