To replicate a Kodi instance to a new machine, it is only necessary to copy three directories from the original machine to the new one. These directories are addons, media, and userdata, and are stored under the Kodi directory. However, this directory is different depending on the OS they are installed in.
So, to copy the configuration from a LibreELEC instance to a Debian Linux derivative, you would copy from /storage/kodi on the LibreELEC machine to the ~/.kodi directory on the Linux machine.
Steps to take are:
Assume copying from a LibreELEC install to a Devuan Linux install. On the Devuan machine, the user to run will be named acme. You are logged into the devuan machine and able to access the LibreELEC machine via ssh. The name on the LibreELEC machine is libreelec.
On the target machine, kodi has been run once, then shut down. LibreELECT makes it difficult to shut down kodi, so we just hope for the best.
cd ~acme mv ~acme/.kodi ~acme/.kodi.old mkdir ~acme/.kodi scp -r libreelec:/storage/.kodi/addons ~acme/.kodi scp -r libreelec:/storage/.kodi/userdata ~acme/.kodi scp -r libreelec:/storage/.kodi/media ~acme/.kodi chown -fR acme:users ~acme/.kodi