Free up SD card space on Raspberry Pi


Raspberry Pi uses SD card for its main storage and you may run out of the free space as your project goes on. Here are some tips to free up your SD card space.

 

1. Uninstall unnecessary packages
Wolfram Engine: I’ve never used but it seems that Wolfram Engine is for mathematical/physics programming. If you don’t have any plans to use, you can get about 700 MB of free space by uninstalling it.

libreoffice: LibreOffice is a free and open source office suite that can be run on multiple OSes such as Linux, Windows, Mac, etc, which is very nice. However, I don’t think many people use LibreOffice on Raspberry Pi… If you remove this pre-installed office suite, you can get approx. 250 MB of free space.

scratch: Scratch is a free educational programming language. If you don’t need it, you can remove it and get approx. 90 MB space.

After you decide what packages to remove, you can remove it like below:

sudo apt-get purge wolfram-engine libreoffice* scratch -y

 

2. Clean up of apt cache
When installing and updating packages, cache date is kept and it’s getting bigger and bigger. To clear the cache, run the following command.

sudo apt-get clean

 

3. Remove unused dependencies
This command removes packages that are no longer used/required.

sudo apt-get autoremove -y

 

Sponsor Link

13 Comments

Comments are closed.