zip and unzip an application

Discussion in 'macOS' started by ohalexis, Jul 27, 2006.

  1. ohalexis macrumors newbie

    Apr 16, 2006
    Does anyone know the correct way to use the command line to "zip" and "unzip" a Mac application? It seems the unzipped version application is not recognized as an application any more, and its size is "shrinked" compare to the original one.
  2. robbieduncan Moderator emeritus


    Jul 24, 2002
    Don't use zip!

    If we assume that your application is called in /Applications (not if you have extensions hidden you will not see the .app in the Finder, but all apps end in .app) then we can do this:

    tar -cf ~/Desktop/Application.tar /Applications/
    gzip ~/Desktop/Application.tar
    This will result in a compressed archive of being created on your desktop called Application.tar.gz. This will work when you expand it (which you can do via the Finder.
  3. Mitthrawnuruodo Moderator emeritus


    Mar 10, 2004
    Bergen, Norway
    Related question:

    I normally use tar czvf archive.tgz folder and a couple of Mac OS updates ago this command started adding all Mac OS X specific meta data in ._files that gets added when I tar them.

    Anyone know how to avoid those annoying meta files?

Share This Page