Skip to content

Minimize image to necessary dependencies #30

Description

@jkaczman

Current list of top dependencies:

TODO:

  • First priority: Try to replace onnxruntime with Burt, Ort or Tract [re-do benchmarks to see if they've improved] to get rid of python + onnx taking up 300MB of the OS
  • Try to replace nmcli / networkmanager-daemon with a more minimal implementation
  • Consider replacement of systemd with something more lightweight. Possibly OpenRC?

Green = need to keep (verified)
Red = try to remove (via TODO)

-60748   KiB     onnxruntime
+33288   KiB     secluso-camera-hub
+31943   KiB     python3-numpy [Pulled in by onnxruntime]
+25369   KiB     kernel-image-image-6.12.58-v8
-11169   KiB     nss [https://layers.openembedded.org/layerindex/recipe/40747/], pulled in by networkmanager-daemon and libnm0
-10163   KiB     python3-core [Pulled in by numpy]
+9361    KiB     secluso-update
-8886    KiB     udev-hwdb [Pulled in by systemd]
-8855    KiB     systemd
+7036    KiB     libcamera
+5579    KiB     libcrypto3 [Pulled in by kmod, libssl3, openssl-bin, python3-crypt, wpa-supplicant]
-5307    KiB     libpython3.13-1.0 [Pulled in by python3-core]
-5057    KiB     libglib-2.0-0 [Pulled in by networkmanager-daemon, libnm0, networkmanager-nmcli..]
-4914    KiB     networkmanager-daemon [Pulled in by networkmanager-nmcli, networkmanager-wifi]
-4102    KiB     python3-misc
-3726    KiB     libsystemd-shared
+3435    KiB     libc6
2892    KiB     wpa-supplicant
-2852    KiB     shared-mime-info [Pulled in by systemd]
-2445    KiB     shadow [Pulled in by systemd-networkd, systemd, udev]
+2435    KiB     libstdc++6
-2430    KiB     shared-mime-info-data
-2084    KiB     systemd-networkd
-2076    KiB     python3-idle
+1986    KiB     libunistring5 [libcamera dependency]
-1949    KiB     libnm0
+1930    KiB     libgnutls30 [libcamera dependency]
-1756    KiB     python3-ensurepip
+1648    KiB     kbd [libc6, bash dependency]
-1491    KiB     libsqlite3-0 [Pulled in by nss]
+1443    KiB     bash
-1371    KiB     python3-asyncio
-1336    KiB     libx11-6 [Transitively pulled in by systemd]
-1291    KiB     udev [Pulled in by systemd]
-1287    KiB     libsystemd0
+1283    KiB     libxml2 [libc6, bash, busybox dependency]
-1282    KiB     python3-pydoc
+1229    KiB     rpicam-apps-fork
-1124    KiB     systemd-extra-utils
1075    KiB     nftables
1057    KiB     openssl-bin [Pulled in by ca-certificates]
1040    KiB     libssl3
-1011    KiB     networkmanager-nmcli
-960     KiB     python3-io
-938     KiB     python3-numbers
-936     KiB     python3-email
-873     KiB     python3-netclient
-872     KiB     python3-xml
-818     KiB     python3-multiprocessing
+778     KiB     parted [Necessary dependency to resize data partition]
+776     KiB     ldconfig [lib6 dependency]
+712     KiB     busybox
-706     KiB     libzstd1 [systemd dependency]
-698     KiB     python3-tkinter

Metadata

Metadata

Assignees

Labels

No labels
No labels

Type

No type

Projects

No projects

Relationships

None yet

Development

No branches or pull requests

Issue actions