-
-
Notifications
You must be signed in to change notification settings - Fork 215
Description
Consider adding homebrew filesizes and possible consider sorting them by descending to see which ones might be doable to remove if being unused. Likewise for pip if that's within the scope of Pearcleaner. Both scripts take less than 5 seconds on mac m1
du -sch $(brew --cellar)/*/* | sort -rh | awk -F'/' '/Cellar/ {printf "%-20s %s\n", $5 " " $6, $1}'
shows you filesize of homebrew packages
llvm 21.1.2 1.7G
qt 6.9.2 830M
gcc 15.2.0 444M
boost 1.89.0 378M
qt@5 5.15.17 367M
rust 1.90.0 357M
deno 2.5.3 144M
ghostscript 10.05.1 123M
python@3.14 3.14.0 83M
node 24.9.0_1 82M
pip list | tail -n +3 | awk '{print $1}' | xargs pip show | grep -E 'Location:|Name:' | cut -d ' ' -
f 2 | paste -d ' ' - - | awk '{print $2 "/" tolower($1)}' | xargs du -sh 2> /dev/null | sort -hr | awk '{print $1, $2}' | awk -F/
'{print $1, $NF}'
list of pip python apps
1.9G site-packages
114M onnxruntime
110M pyarrow
88M llvmlite
70M pandas
56M kiwipiepy_model
54M pymupdf
50M av
41M jieba
34M pygame
30M numba
29M matplotlib