Jolla Mobile ships with software repositories and pkcon package manager which is not very verbose on what it does. So I installed zypper from Mer project repository and it seemed to work nicely that way.
First get zypper and it's dependencies. Your phone must have developer mode enabled and password set to have shell access.
devel-su mkdir packages cd packages curl -O http://releases.merproject.org/releases/latest/builds/armv7hl/packages/armv7hl/augeas-1.0.0-1.1.4.armv7hl.rpm curl -O http://releases.merproject.org/releases/latest/builds/armv7hl/packages/armv7hl/augeas-libs-1.0.0-1.1.4.armv7hl.rpm
rpm -Uvh zypper-1.8.3-1.1.9.armv7hl.rpm augeas-libs-1.0.0-1.1.4.armv7hl.rpm
zypper lr
zypper pa > zypperpackages.txt grep mypackage zypperpackages.txt