How to update one file in a zip archive

后端 未结 10 1228
心在旅途
心在旅途 2020-12-02 16:16

Is it possible to replace a file in a zip file without unzipping deleting the old file adding the new file and rezipping it back?

Reason is I have a zip file which i

10条回答
  •  心在旅途
    2020-12-02 16:44

    yes its possible.

    on linux based systems just install zip and you can call it in the command line. have a look at the manpage: http://linux.die.net/man/1/zip

    but in my personal experience, if possible and compression is not so important, this works better with plain tar files and tar.

提交回复
热议问题