π§Ό Raspberry Pi β Remove Unused Software (2025 System Cleanup Guide)
π§² Introduction β Clean Up Your Raspberry Pi for Better Performance
As you install new tools, software, and packages, your Raspberry Pi can quickly become clutteredβespecially with a limited SD card or eMMC storage. Removing unused software helps free up disk space, boost speed, and reduce boot times.
π― In this guide, youβll learn:
- How to identify and remove unused packages
- Use
apt
,dpkg
, and GUI tools for uninstallation - Clean up orphaned dependencies and cache
- Real-world examples and automation tips for regular maintenance
π¦ Step 1: List Installed Software
β List all installed packages:
dpkg --get-selections
Filter manually or pipe to search:
dpkg --get-selections | grep libreoffice
β
Helps identify large or unnecessary packages like wolfram-engine
, libreoffice
, minecraft-pi
, etc.
π§Ή Step 2: Remove Specific Applications
β Syntax:
sudo apt remove <package-name>
Example β Remove LibreOffice:
sudo apt remove --purge libreoffice*
Example β Remove Wolfram Engine:
sudo apt remove --purge wolfram-engine
β
--purge
also deletes configuration files.
π§½ Step 3: Clean Orphaned Packages and Cache
β Autoremove unused dependencies:
sudo apt autoremove
β Clean APT cache:
sudo apt clean
β These commands remove leftovers from previously uninstalled software.
π§° Common Unused Software on Raspberry Pi OS (Desktop)
ποΈ Package | π‘ Description |
---|---|
libreoffice* | Office suite (500MB+) |
wolfram-engine | Math engine rarely used by most users |
scratch* | Kids programming app |
minecraft-pi | Pre-installed Minecraft demo |
gnome-games | Lightweight games |
dillo , netsurf-gtk | Basic web browsers |
π₯οΈ Step 4: Use GUI for Software Removal (Optional)
If using Raspberry Pi Desktop:
- Open “Add / Remove Software” from menu
- Search by name (e.g., “libreoffice”)
- Uncheck unwanted apps
- Click Apply
β Best for beginners or those unsure of package names.
π Step 5: Regular Maintenance Commands
π§Ή Command | π§Ύ What It Does |
---|---|
sudo apt update && upgrade | Keeps system up to date |
sudo apt autoremove | Cleans unused libraries |
sudo apt clean | Deletes downloaded .deb cache |
df -h | View free disk space |
du -sh /path/* | Show folder sizes (e.g., /home/pi ) |
π§ Best Practices for Cleanup
β Doβs | β οΈ Donβts |
---|---|
Use --purge to remove config files | Donβt delete core packages (raspberrypi-ui ) |
Check space with df -h | Avoid removing systemd-related services |
Backup before bulk uninstall | Donβt use rm -rf on system folders |
Review /var/cache , /tmp , /logs | Donβt remove /boot files manually |
π Summary β Recap & Next Steps
Cleaning up unused software on your Raspberry Pi improves performance, storage availability, and system stability. Use apt remove
, autoremove
, and clean
regularly, and avoid installing unnecessary bloat.
π Key takeaways:
- Use
apt remove --purge
for full uninstallation - Clean orphaned packages with
autoremove
- GUI tools available in Raspberry Pi Desktop
- Monitor space with
df -h
anddu -sh
βοΈ Real-world relevance: Ideal for Pi used as kiosk, IoT node, media center, or server where minimal overhead is crucial.
β FAQs β Removing Software on Raspberry Pi
β Will removing software break my system?
β Noβif you avoid core desktop packages. Stick to known third-party tools and GUI apps.
β How can I find whatβs using the most space?
β Use:
sudo du -ah / | sort -rh | head -n 20
β Does apt remove
delete config files too?
β
Not always. Use --purge
to remove configs:
sudo apt remove --purge <package>
β Can I reinstall removed software later?
β Yes. Just run:
sudo apt install <package-name>
β Should I remove packages like minecraft-pi
or scratch
?
β Yes, if you’re not using themβtheyβre safe to remove and take up space.
Share Now :