Remove Unwanted Files - Raspberry Pi

From ETCwiki
Jump to navigationJump to search
The printable version is no longer supported and may have rendering errors. Please update your browser bookmarks and please use the default browser print function instead.

I backup my pi on a regular basis and I have not been using the desktop on this install at all. I want to remove stuff that is not necessary like locales. Make sure you setup your locale before removing the others! Setup your Locale

raspi-config

Remove unused locales (brought me back 70mb of my 500mb image) Note: this remove all BUT en_US.UTF-8 so make sure u enter the names u want to keep

apt-get install localepurge     (during install you select which locales to keep!)
localepurge

Clean up apt-get junk

apt-get autoremove
apt-get autoclean
apt-get clean