Quantcast
Channel: Raspberry Pi Forums
Viewing all articles
Browse latest Browse all 4999

Raspberry Pi OS • Re: Bookworm: Looking for suggestions to reduce disk consumption

$
0
0
You might consider approaching this from the other end. Start with RPiOS Lite and then add only the packages you want (letting apt pull in any dependencies).
I went down that path, but it didn't help. Once you install some of the Raspberry Pi packages, a lot of ancillary stuff gets pulled in. Right now I'm using pi-gen to generate the OS in an attempt to pick and choose what I need, but it still results in too much disk utilization.
If you can work out what packages are not safe to autoremove, I would start by posting them here.
See the following output of the command sudo apt purge wayfire:

Code:

pi@raspberrypi:~ $ sudo apt purge wayfireReading package lists... DoneBuilding dependency tree... DoneReading state information... DoneThe following packages were automatically installed and are no longer required:  desktop-file-utils fonts-piboto grim gtk-nop gtk2-engines-pixbuf gtk2-engines-pixflat gui-pkinst labwc-prompt  libaml0 libliftoff-rpi libneatvnc0 libturbojpeg0 libwf-config1 libwf-utils0 libwlroots11 lxplug-bluetooth  lxplug-cputemp lxplug-ejecter lxplug-magnifier lxplug-menu lxplug-netman lxplug-network lxplug-ptbatt lxplug-updater  lxplug-volumepulse mate-polkit-bin pi-greeter pipanel pishutdown pixflat-icons pixflat-theme qt5-gtk2-platformtheme  qt5-style-plugin-cleanlooks qt5-style-plugin-motif qt5-style-plugin-plastique qt5-style-plugins qt5ct  rpd-plym-splash rpd-wallpaper wayvnc wlopm xsettingsdUse 'sudo apt autoremove' to remove them.The following packages will be REMOVED:  raspberrypi-ui-mods* wayfire*0 upgraded, 0 newly installed, 2 to remove and 0 not upgraded.
The packages listed under The following packages were automatically installed and are no longer required are the ones that will be removed with sudo apt autoremove.

wayvnc should not be removed.
The lxplug* packages should not be removed.
I think raspberrypi-ui-mods should not be removed.
labwc-prompt should not be removed. Etc.
All of those are also needed for labwc (which is currently installed).
I do not think you will save more than a few GB by uninstalling unwanted packages, so can you not just use less cramped storage devices?
Saving a few hundred MB to a few GB is exactly what I need to do. I wish I could use a larger storage device, but my use case demands an 8GB storage device with a data partition as large as possible. There's just not enough room for the Bookworm OS, the boot partition, and the data partition on an 8GB device. There's a lot of stuff in the OS that I just don't need. I just need to be able to remove it without breaking the OS. Right now that doesn't seem possible, and I'm assuming its a problem with the packaging.

Statistics: Posted by JinShil — Fri Jan 24, 2025 2:05 am



Viewing all articles
Browse latest Browse all 4999

Trending Articles