In “.config/libreoffice/4/user/pack/” directory there are “*.pack” files that appear to be backup copies of templates, basic modules, databases etc. Is it possible to unpack them manually or with some macro command?
I want to recover a deleted basic module (Module1) containing important basic macro and the only place where I’ve found a copy of the module is “pack” folder (I’ve copied this folder before closing LO, while Module1.xba dissipated form .config/libreoffice/4/user/basic/Standard/ simultaneously with deletion). But I can’t find a way to convert “Module1.pack” (full path: .config/libreoffice/4/user/pack/basic/Standard/Module1.pack) file into something like Module1.xba or Module1.bas.
Double clicking on “Module1.pack” returns Error Message “There is no applications installed for pack200 Java archive files”. Renaming into Module1.zip and running in terminal “unzip Module1.zip” does not work as well.
Also I’ve tried “unpack200” utility, it returns the following:
$ unpack200 Module1.pack myfile.jar
Warning: The unpack200 tool is deprecated, and is planned for removal in a future JDK release.
Corrupted pack file: magic/ver = 5041434B/0.0 should be CAFED00D/150.7 OR CAFED00D/160.1 OR CAFED00D/170.1 OR CAFED00D/171.0
LO 6.4.7.2 on Ubuntu 20.04, LO 7 under Windows 8