Bloat from 2015 to 2020 - how to recover disk space by uninstalling unused features



  • In version 2.2.2 back in 2015 total disk usage was 246 MB. Now in 2.4.4_3 it is 827 MB. Same features have always been used (multiwan). No pfsense packages added by myself. Is there a safe way to cut down on disk usage by removing unused features?

    Here is the ending of the output of du -m / | sort -n if it helps.

    11 /lib
    12 /var/db
    13 /usr/share/i18n/csmapper/CP
    14 /usr/local/lib/perl5/5.26/mach/auto
    15 /usr/sbin
    17 /usr/lib/debug/usr/bin
    17 /usr/local/include
    22 /usr/local/lib/perl5/5.26/mach
    25 /var
    26 /usr/lib/debug/lib
    28 /usr/lib/debug/usr/sbin
    29 /usr/share/i18n/csmapper
    30 /usr/share/i18n
    31 /usr/local/lib/python2.7/test
    33 /usr/lib/debug/usr/lib
    36 /usr/local/bin
    36 /usr/local/share/locale
    40 /usr/local/share/pfSense
    48 /usr/share
    49 /boot/kernel
    53 /usr/local/sbin
    55 /boot
    58 /usr/local/lib/perl5/5.26
    62 /usr/local/lib/perl5
    78 /usr/lib/debug/usr
    82 /usr/local/lib/python2.7
    91 /usr/local/share
    113 /usr/lib/debug
    170 /usr/lib
    217 /usr/local/lib
    439 /usr/local
    682 /usr
    827 /



  • Looks like you're running lean.

    16      /pkgs
    16      /usr/local/www
    17      /usr/local/share/openvpn
    17      /usr/local/share/openvpn/client-export
    17      /usr/local/share/openvpn/client-export/template
    19      /usr/local/share/GeoIP/cc
    23      /usr/local/include
    27      /usr/local/lib/perl5/5.30/mach
    27      /usr/local/share/icu
    27      /usr/local/share/icu/65.1
    29      /usr/share/i18n/csmapper
    30      /usr/share/i18n
    31      /var/log/snort
    31      /var/log/snort/snort_vmx141214
    32      /var/db
    33      /usr/local/lib/python3.7/test/__pycache__
    36      /usr/local/share/locale
    40      /usr/local/bin
    42      /usr/local/share/pfSense
    49      /usr/share
    51      /boot/kernel
    58      /usr/local/share/GeoIP
    60      /usr/local/sbin
    61      /usr/local/lib/python3.7/test
    62      /usr/lib
    63      /usr/local/lib/perl5/5.30
    67      /usr/local/lib/perl5
    77      /var/log
    99      /boot/kernel.old
    129     /usr/local/lib/python3.7
    154     /var/cache
    154     /var/cache/pkg
    157     /boot
    200     /usr/local/share
    274     /var
    306     /usr/local/lib
    661     /usr/local
    799     /usr
    1336    /
    
    

  • Netgate Administrator

    There is no "safe" way to do this no. Is there any particular reason you need such a small footprint?

    Steve



  • Just running a lot of VM's on small disk/SSD space, not worth too much effort. Thanks for the input.


Log in to reply