Create a Post
cancel
Showing results for 
Search instead for 
Did you mean: 
Bernhard_Sayer
Contributor
Jump to solution

Uncompress zip archive on cli?

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
masher
Employee
Employee

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  .

View solution in original post

3 Replies
masher
Employee
Employee

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  .

Bernhard_Sayer
Contributor

Many thanks!

This command did the job 🙂

0 Kudos
PhoneBoy
Admin
Admin

 star shooting star the more you know educate yourself GIF

0 Kudos

Leaderboard

Epsum factorial non deposit quid pro quo hic escorol.

Upcoming Events

    CheckMates Events