How to Save Disk Space in Raspberry Pi OS and Purge Bloat

 Save Disk Space in Raspberry Pi OS
(Image credit: Shutterstock)

There is no getting away from bloat. Be it the middle aged spread or the ever increasing size of applications. But how can we battle the bloat on our Raspberry Pi? You could install the many lighter Raspberry Pi distros (Raspberry Pi OS Lite, or Diet Pi for example). But what if we want to reduce our running installation?

Linux uses package managers to install and remove software packages. Software is downloaded from official (or third party) repositories and the package manager handles the installation of the software and its dependencies. For Raspberry Pi OS, we use the Advanced Packaging Tool (APT) as the OS is a derivative of the Debian OS. Using the apt tools we can add and remove software packages, but how can we surgically remove the packages causing the bloat? Linux has the tools to identify and list the packages, ready for us to trim the fat.

TOPICS
Les Pounder
Associate Editor

Les Pounder is an associate editor at Tom's Hardware. He is a creative technologist and for seven years has created projects to educate and inspire minds both young and old. He has worked with the Raspberry Pi Foundation to write and deliver their teacher training program "Picademy".

  • kenfiduk
    Admin said:
    Identify and remove the packages that bloat your Raspberry Pi OS installation. All you need are a few commands and a little Linux know-how.

    How to Save Disk Space in Raspberry Pi OS and Purge Bloat : Read more
    I am running Bullseye on my Raspberry Pi 4. When I attempt to install 'wajig', I get
    "
    Package wajig is not available, but is referred to by another package.
    This may mean that the package is missing, has been obsoleted, or
    is only available from another source

    E: Package 'wajig' has no installation candidate"
    Reply