Add/Update/Remove Single File in Zip File

Discussion in 'macOS' started by weizilla, Jun 12, 2008.

  1. weizilla macrumors regular

    Feb 7, 2008
    How do you add/update/remove a single file from an existing zip or rar (or any compressed) file on a mac?

    In Windows, you have the Winzip/Winrar app which simply shows the contents of the file in an interface that you can drag files into and out of. I can't for the life of me find a similar app for Mac. All of the apps I found simply uncompresses the entire zip file with no interface whatsoever.

    My problem essentially is that I'm changing files inside of a compressed file but it uses a specific format so I don't know how to recreate the compressed file. I can open and uncompress the file perfectly so normally on Windows, I can extract single files, change them and add them back with no problems.
  2. xroox macrumors newbie

    Jan 19, 2009

    Excellent question, would also like to know the answer to this.
  3. belvdr macrumors 603

    Aug 15, 2005
    Not sure about zip, but with tar:

     tar uvf <name of file>.tar <filename to update>
    That will update the file in the tarball.

    You can use:

    tar --delete uvf <name of file>.tar <filename to remove>
    to delete a file from a tarball.
  4. tplatt macrumors newbie

    Aug 30, 2009
    The zip command line has a -d or --delete option as well, which will remove one or more files from an existing zip archive. Open a terminal window and type man zip for details ... a LOT of details :)
  5. cozappz macrumors newbie

    Jan 23, 2012
    Is there any GUI application which can do what WinRAR/WinZip do on windoze?
    I mean, OS X is famous for its GUI too, not only for the BSD heritage :p

Share This Page