cancel
Showing results for 
Search instead for 
Did you mean: 
Post a Question

Uncompress zip archive on cli?

Jump to solution

Hi!

I have to unzip a zip archive in the cli on a management server. Because on Gaia only gunzip is available i tried it without luck: 

[Expert@cp-mgmt:0]# gunzip test.zip
gzip: test.zip: unknown suffix -- ignored

On a full featured Linux i am able to uncompress this file with "unzip":

[root@centos temp]# unzip test.zip
Archive:  test.zip

…….

Is there a way to uncompress a zip file with gunzip?

BR,

Bernhard

0 Kudos
1 Solution

Accepted Solutions
Employee+
Employee+

Re: Uncompress zip archive on cli?

Jump to solution

Zip is not included as a part of Check Point's linux installation.

zip and gunzip are two different file-types and support different compression algorithms.

- https://linux.die.net/man/1/gunzip 

- https://linux.die.net/man/1/zip 

If you have to copy files over to a gateway or management, then I would recommend using TAR and gzip/xz formats as those are supported.

If the compression method is unable to be changed, then it is possible to use python on the manager in order to unpack the zip file.

# python -m zipfile -e  zipfile.zip  .

0 Kudos
3 Replies
Employee+
Employee+

Re: Uncompress zip archive on cli?

Jump to solution

Zip is not included as a part of Check Point's linux installation.

zip and gunzip are two different file-types and support different compression algorithms.

- https://linux.die.net/man/1/gunzip 

- https://linux.die.net/man/1/zip 

If you have to copy files over to a gateway or management, then I would recommend using TAR and gzip/xz formats as those are supported.

If the compression method is unable to be changed, then it is possible to use python on the manager in order to unpack the zip file.

# python -m zipfile -e  zipfile.zip  .

0 Kudos

Re: Uncompress zip archive on cli?

Jump to solution

Many thanks!

This command did the job 🙂

0 Kudos
Admin
Admin

Re: Uncompress zip archive on cli?

Jump to solution

 star shooting star the more you know educate yourself GIF

0 Kudos