kipr / KIPR-Development-Toolkit

This is a package that includes everything you need to start developing software for KIPR
5 stars 0 forks source link

Space Limitations: Upgrade SDs or Find files to cut out #9

Closed Zacharyprime closed 2 years ago

Zacharyprime commented 2 years ago

We have been reaching this point for some time, but 8GB is cramped. Half of this space is taken up by /usr/lib, which makes a bit of sense.

We might be able to cut out a significant amount by using executables for installation rather than building straight from GitHub. There are probably lib files that can be eliminated with this, we would just have to keep larger SDs for the development team to use.

Here are the sizes of some notable directories/files:

Click to Expand /usr ``` pi@raspberrypi:/usr $ du -hs 4.8G . pi@raspberrypi:/usr $ du -hs * 269M bin 4.0K games 334M include 3.0G lib 7.2M libexec 6.1M local 23M sbin 1.3G share 124K src ``` /usr/lib ``` pi@raspberrypi:/usr/lib $ du -hs * | grep G 1.2G arm-linux-gnueabihf pi@raspberrypi:/usr/lib $ du -hs * | grep M 1.7M aspell 389M chromium-browser 5.5M cups 11M debug 6.4M file 142M firmware 93M gcc 15M git-core 1.8M jni 1.2M libBLT.2.5.so.8.6 18M libgdal.so.28.0.2 0 libRTIMULib.so 0 libRTIMULib.so.7 152K libRTIMULib.so.7.2.1 294M llvm-11 4.7M locale 355M modules 61M modules.bak 12K NetworkManager 30M node_modules 1.1M openssh 2.5M pulse-14.2 75M pypy 28M python2.7 142M python3 41M python3.9 15M qt5 11M systemd 20M udev 3.1M xorg ``` /home/pi (~) ``` pi@raspberrypi:~ $ du -hs . 278M . ``` / (root) [output trimmed for readability] ``` pi@raspberrypi:/ $ du -sh bin etc home lib media opt root sbin srv sys usr 6.0M etc 278M home 0 lib 4.0K media 12M opt 4.0K root 0 sbin 4.0K srv 0 sys 4.8G usr ```

The exact sizes shown might vary system to system as v27 can be built from scratch on any Debian based OS. The build this is from is a Wombat starting on Raspberry Pi OS following these steps (roughly, this gist changes as I fix things).

Zacharyprime commented 2 years ago

We have discussed this in other places since this post was made.

We will likely upgrade in the future but for now 8GB works.