You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
[REQ] extracting unknown formats (was: support for tar file with .spk extension) #1022
Is your feature request related to a problem? Please describe
Tried to extract a .spk Synology package file, which is a known archive file format but unknown to Keka as it uses a different file extension.
Describe the solution you'd like
Keka should know how to extract it, or be able to guess.
Describe alternatives you've considered
The Unarchiver, which already knows how to handle .spk files.
Additional context
Maybe file command can be used to inspect the contents of a file and be able to guess if it's of a supported type? The worst outcome is that the file still cannot be expanded, the best outcome is that the file is expanded when no explicit support!
For example, SPK is in fact a simple TAR file with a different file extension.
$ file synokernel-cdrom_broadwell-6.2.3_1.0-1.spk
synokernel-cdrom_broadwell-6.2.3_1.0-1.spk: POSIX tar archive (GNU)
Of course, explicit support is needed to add Keka to the context menu (open with) for a particular file type. Would it help to take a look at all the file extensions supported by The Unarchiver?
Activity
aonez commentedon Jan 24, 2022
Can you share a sample file? Keka already has format detection that detects various types or TAR packages, I’m not sure why is not detecting that one.
aonez commentedon Jan 24, 2022
Already found some :)
aonez commentedon Jan 24, 2022
I've downloaded one random from here https://archive.synology.com/download/Package and they don't seem to be TAR packages. Can you share one?
gingerbeardman commentedon Jan 24, 2022
Try https://github.com/publicarray/spksrc/releases/download/sonarr-3.0.5.1144/nzbdrone_x64-6.1_20210329-19.spk
gingerbeardman commentedon Jan 24, 2022
Indeed Keka does exract this, not sure what i did wrong/different earlier.
So I guess it would always be nice to add more file extensions so Keka shows up on the Open With... menu.
aonez commentedon Jan 24, 2022
Sure! I'll add this one to the supported list.
Seems that newer SPK archives are compressed in another way. For example:
The newer 1.0.2 is no more a TAR.
aonez commentedon Jan 24, 2022
Got curious, here some info: https://help.synology.com/developer-guide/toolkit/pack_stage.html
And here what used to create the TAR packages:
https://github.com/SynologyOpenSource/pkgscripts-ng/blob/542c587daade6d11d224c866507ab44b511f9f0f/include/pkg_util.sh#L348-L349
aonez commentedon Apr 1, 2022
1.2.53 up handling spk by default :)