How to install a .deb package on LibreELEC?

  • I have several RPi4's running LE v12.2.1.

    My power is not good and I have power blips anytime the wind decides to pick up a little bit, so I added a small UPS to each of my systems. I just had a power blip and tested these UPS's. One of them did not preform as expected, so I downloaded the manufacture software, plugged it into my PC to check the status. Of course it says all is good and testing went perfect, so I thought I'd see if I could put the Linux monitoring software on the PI so I could watch logs. However, dpkg is not a command on the LibreELEC. I looked through all of the add on packages and I don't see anything that works. Is it possible to add a .deb package?

    Thanks

  • No, you can't install deb (or rpm, ...) packages on LibreELEC.

    But you could run a docker container with a minimal Debian version (eg trixie-slim) and install the deb in there (eg in a Dockerfile)

    so long,

    Hias

  • No, you can't install deb (or rpm, ...) packages on LibreELEC.

    But you could run a docker container with a minimal Debian version (eg trixie-slim) and install the deb in there (eg in a Dockerfile)

    so long,

    Hias

    I'll give that a try. Thanks for the info.

  • It's not possible to install .deb packages but it is possible to unpack them to see what's inside:

    Code
    ar x package.deb
    mkdir /storage/deb
    tar -xf control.tar.xz -C /storage/deb
    tar -xf data.tar.xz -C /storage/deb

    If the tool(s) are a single binary, inspect it with ldd to see if it's a static binary or linked against shared libraries. Manufacturers tend to compile this type of tool as a static binary to make it self-contained and more portable across a larger group of distros; and if true, you can probably just copy the binary and run it on LE with some supporting scripts and a systemd service.

    If the tools are a whole suite of binaries etc. then it's probably a dead end.