如何从 Centos 中的旧 QNX 中提取 .z 文件

Tah*_*lik 2 centos qnx

z 来自旧 QNX 系统的文件,需要在首选 Centos 中解压。

这些文件使用 QNX 打包方法打包,并且没有可用于加载 QNX 和解包这些文件的虚拟机 (VMWARE)。

我已经尝试了所有可用的提取程序,但没有人能够解压这些程序。文件文件名给出了数据,因此我尝试了以下操作:

  • 枪拉链
  • 解压
  • 柏油
  • 压缩包
  • 7z
  • 解压

Centos 输出:

-rwxr--r-- 1 root root  896 Mar 11 05:15 PMITN01.z
[root@green update]# zcat PMITN01.z
zcat: PMITN01.z: not in gzip format
[root@green update]# gunzip PMITN01.z
gunzip: PMITN01.z: not in gzip format
[root@green update]# uncompress -v PMITN01.z
PMITN01.z - no .Z suffix
[root@green update]# tar -zxvf PMITN01.z
gzip: stdin: not in gzip format
tar: Child returned status 1
tar: Error exit delayed from previous errors
[root@green update]# cat PMITN01.z | cpio -imdv
cpio: premature end of archive
[root@green update]# file PMITN01.z
PMITN01.z: data
Run Code Online (Sandbox Code Playgroud)

安装冻结/融化后:

[root@green update]# cp PMITN01.z PMITN01.z.F
[root@green update]# melt PMITN01
PMITN01.F: No such file or directory
[root@green update]# melt PMITN01.z
PMITN01.z.F: not in frozen format
Run Code Online (Sandbox Code Playgroud)

我发现的唯一有价值的搜索是以下OpenQNX 论坛

- - -更新 - - - -

我在此处添加了该文件以便您可以查看/检查它是什么类型的文件。

我仍然没有找到我的问题的答案,所以我不知道为什么答案会被点赞....

为了使它更复杂,使用的系统可能将文件拆分为多个文件,这是一个 ll -hal 输出:

-rwxrw-r-- 1 root root  357 Feb  7  2012 PMIPN.z
-rwxrw-r-- 1 root root  362 Feb  7  2012 PMIRN01.z
-rwxrw-r-- 1 root root  695 Feb  7  2012 PMIRN02.z
-rwxrw-r-- 1 root root  995 Feb  7  2012 PMIRN03.z
-rwxrw-r-- 1 root root  363 Feb  7  2012 PMIRN04.z
-rwxrw-r-- 1 root root 3.2K Feb  7  2012 PMIRN05.z
-rwxrw-r-- 1 root root  363 Feb  7  2012 PMIRN06.z
-rwxrw-r-- 1 root root  363 Feb  7  2012 PMIRN07.z
-rwxrw-r-- 1 root root  362 Feb  7  2012 PMIRN08.z
-rwxrw-r-- 1 root root  851 Feb  7  2012 PMIRN09.z
-rwxrw-r-- 1 root root 1022 Feb  7  2012 PMIRN10.z
-rwxrw-r-- 1 root root  361 Feb  7  2012 PMIRN11.z
-rwxrw-r-- 1 root root  695 Feb  7  2012 PMIRN12.z
-rwxrw-r-- 1 root root  15K Feb  7  2012 PMIRN13.z
-rwxrw-r-- 1 root root  16K Feb  7  2012 PMIRN14.z
-rwxrw-r-- 1 root root 1.6K Feb  7  2012 PMIRN15.z
-rwxrw-r-- 1 root root  638 Feb  7  2012 PMIRN16.z
-rwxrw-r-- 1 root root 1.9K Feb  7  2012 PMIRN17.z
-rwxrw-r-- 1 root root  13K Feb  7  2012 PMIRN18.z
-rwxrw-r-- 1 root root  363 Feb  7  2012 PMIRN19.z
-rwxrw-r-- 1 root root  578 Feb  7  2012 PMIRN20.z
-rwxrw-r-- 1 root root  362 Feb  7  2012 PMIRN21.z
-rwxrw-r-- 1 root root 1.6K Feb  7  2012 PMIRN22.z
-rwxrw-r-- 1 root root  361 Feb  7  2012 PMIRN23.z
-rwxrw-r-- 1 root root  361 Feb  7  2012 PMIRN24.z
-rwxrw-r-- 1 root root  688 Feb  7  2012 PMIRN25.z
-rwxrw-r-- 1 root root  362 Feb  7  2012 PMIRN26.z
-rwxrw-r-- 1 root root  650 Feb  7  2012 PMIRN27.z
-rwxrw-r-- 1 root root  801 Feb  7  2012 PMIRN28.z
-rwxrw-r-- 1 root root 3.0K Feb  7  2012 PMIRN29.z
-rwxrw-r-- 1 root root  361 Feb  7  2012 PMIRN30.z
-rwxrw-r-- 1 root root  354 Feb  7  2012 PMIRN31.z
-rwxrw-r-- 1 root root  569 Feb  7  2012 PMIRN32.z
-rwxrw-r-- 1 root root  361 Feb  7  2012 PMIRN33.z
-rwxrw-r-- 1 root root  362 Feb  7  2012 PMIRN34.z
-rwxrw-r-- 1 root root  362 Feb  7  2012 PMIRN35.z
-rwxrw-r-- 1 root root 7.8K Feb  7  2012 PMIRN36.z
-rwxrw-r-- 1 root root  875 Feb  7  2012 PMIRN37.z
-rwxrw-r-- 1 root root 4.6K Feb  7  2012 PMIRN38.z
-rwxrw-r-- 1 root root 3.2K Feb  7  2012 PMIRN39.z
-rwxrw-r-- 1 root root  362 Feb  7  2012 PMIRN40.z
-rwxrw-r-- 1 root root  362 Feb  7  2012 PMIRN41.z
-rwxrw-r-- 1 root root 7.4K Feb  7  2012 PMIRN42.z
-rwxrw-r-- 1 root root  362 Feb  7  2012 PMIRN43.z
Run Code Online (Sandbox Code Playgroud)

正如您所看到的,文件大小的划分并不明确。

Ant*_*hon 5

你应该先试试这个命令

file yourfilename.z
Run Code Online (Sandbox Code Playgroud)

看看它被识别为什么,这应该是哪个程序的指示。

如果file说这是compress'd data 16 bits你可以使用

gzip -d < yourfilename.z > yourfilename
Run Code Online (Sandbox Code Playgroud)

解压缩它(除了uncompress程序。