Install history, crucial in finding leftovers
Edit: also look for npm/make/gcc, apparently some apps just add those as install requires, that’s 0.5GB right there, still rootfs should get increases if 1.5 is new normal now for updates
Is there an equivalent to pacman -Qdt (list orphaned packages) for pkcon and/or zypper? Maybe that could go into the guide, too. And how to remove them savely.
Short answer: no.
There exist three switches to zypper packages which are supposed do do orphan cleaning, but none of them work as one might expect or are safe to be recommended.
Therefore I shall not mention them here. Search and you will find.
Um, why? Because it doesn’t handle dependencies? Or something deeper?
Nice write-up btw, thanks a lot!
Basically zero safeguards.
Also, if some guide (and nowadays AI output) mentions it, it’s a good indicator that it (the guide) is wrong.
safeguards
What kind of safeguards?
With the new update finally out, i expect more people will be using this excellent guide (for which thank you!).
I’d just like to add a word of warning here for OKBoard users, that there are reports (1,2) that removing it may leave you without a keyboard, and this was my experience too. I haven’t had the time to try this on another device to get logs and give feedback to the author, but beware!
As it happens, OKBoard doesn’t actually use up too much disk space, so I would keep it installed, but if you do get stuck, a bluetooth/usb keyboard can help as would changing your Security Code to a numeric one if yours is alphanumeric.
@nephros Thanks for this guide. Never thought about using ncdu on my device. I do struggle to find room to increase my free space. Only thing I find to be deletable is “mimic”, this seems a dependency for Chum.
Only thing I find to be deletable is “mimic”, this seems a dependency for Chum.
If by Chum you are referring to Chum GUI, mimic is definitely not a dependency of that.
To add some self promotion, Space Inspector | OpenRepos.net — Community Repository System is a nice tool to get a visual overview of your storage usage. You can drill down and even delete user owned content (carefully). Of course you cannot de-install software this way, dedicated package managers are needed for that.
Hi, another tip to make some more space (but recommended for brave souls only).
I’ve noticed that some packages provide executable files that are not stripped(!).
prework:
pkcon install file bin-utils
First, check if there are any in /usr/bin:
$ for f in /usr/bin/* ; do file $f | grep -q 'not stripped' && echo "$f is NOT stripped"; done
/usr/bin/compile_regexes is NOT stripped
/usr/bin/gmLocate is NOT stripped
/usr/bin/harbour-chatgpt is NOT stripped
/usr/bin/harbour-jollacompass is NOT stripped
/usr/bin/harbour-metronome is NOT stripped
…
Then make a backup directory (always make a backup!)
mkdir -p ~/free-space-backup
And strip symbols (with backup, of course)
devel-su
for f in /usr/bin/* ; do file $f | grep -q 'not stripped' && {
mkdir -p $(dirname $f) && cp -v $f /home/$LOGNAME/free-space-backup/$f && strip $f
}
done
If strip claims that file is used, kill service/app and manually strip file again (backup is already stored)
Nice tip, one addition: be careful to definitely not attempt that on anything else than proper executables. Stripping a library can/will have BAAAAD consequences.
So double-check your find paths.
And developers, strip your binaries, or even better make debuginfo packages.
In your experience how much space did you free up with this process?
About 18MB. Not impressive, but single byte sometimes makes difference.
Uninstalled AAS but it did nothing to my root, is there more i need to uninstall manually?
Look in /opt/appsupport.
Did you follow this instruction on the matter? Removing Android AppSupport | Sailfish OS Documentation
Yes, I found it in another thread, removed the system.img in opt/appsupport and then I had enough finally