gunzip solaris.zlib gzip: solaris.zlib: unknown suffix -- ignored
unzip solaris.zlib Archive: solaris.zlib End-of-central-directory signature not found. Either this file is not a zipfile, or it constitutes one disk of a multi-part archive. In the latter case the central directory and zipfile comment will be found on the last disk(s) of this archive. unzip: cannot find zipfile directory in one of solaris.zlib or solaris.zlib.zip, and cannot find solaris.zlib.ZIP, period.
bzip2 -d solaris.zlib bzip2: Can't guess original name for solaris.zlib -- using solaris.zlib.out bzip2: solaris.zlib is not a bzip2 file.
xz -d solaris.zlib xz: solaris.zlib: File format not recognized
tar xf solaris.zlib tar: This does not look like a tar archive tar: Skipping to next header tar: Exiting with failure status due to previous errors
These commands were run on Linux. I think the tools are cross platform but I tried on my FreeBSD VM anyway:According to this, these .zlib files are simply compressed iso images. But when I tried to extract it as an archive with many different commands, all failed.
gunzip solaris.zlib gunzip: solaris.zlib: unknown suffix -- ignored
unzip solaris.zlib unzip: Unrecognized archive format
bzip2 -d solaris.zlib bzip2: Can't guess original name for solaris.zlib -- using solaris.zlib.out bzip2: solaris.zlib is not a bzip2 file.
xz -d solaris.zlib xz: solaris.zlib: File format not recognized
tar xf solaris.zlib tar: Error opening archive: Unrecognized archive format
It just said 'data'.Use file(1). What does 'file solaris.zlib' say?
file solaris.zlib
solaris.zlib: data
7za x solaris.zlib 7-Zip (a) [64] 16.02 : Copyright (c) 1999-2016 Igor Pavlov : 2016-05-21 p7zip Version 16.02 (locale=C,Utf16=off,HugeFiles=on,64 bits,4 CPUs x64) Scanning the drive for archives: 1 file, 194526720 bytes (186 MiB) Extracting archive: solaris.zlib ERROR: solaris.zlib Can not open the file as archive Can't open as archive: 1 Files: 0 Size: 0 Compressed: 0
The tool created these .zlib archives is lofiadm:Note that the gunzip commands all gave up immediately just because of the file extension and didn’t actually try to extract anything.
Not that I would expect it to work though. If it was a gzip then the file command would of identified it.
Looking online brings up a load
of unrelated stuff but looks like it might be compressed and stored in a simple container format that has extra metadata,etc. therefore you’d need something that understands the container format enough to be able to extract the compressed data first, then you could uncompress it (assuming it uses a fairly standard compression format).