• anteaters@feddit.de
        link
        fedilink
        arrow-up
        0
        ·
        1 year ago

        I avoid it and use zip or 7z if I can. But for some crazy reason some people stil insist on using that garbage tool and I have no idea why.

        • aard@kyu.de
          link
          fedilink
          arrow-up
          0
          ·
          1 year ago

          If you want to do more than just “pack this directory up just as it is” you’ll pretty quickly get to the limits of zip. tar is way more flexible about selecting partial contents and transformation on packing or extraction.

          • anteaters@feddit.de
            link
            fedilink
            English
            arrow-up
            0
            ·
            edit-2
            1 year ago

            100% of tarballs that I had to deal with were instances of “pack this directory up just as it is” because it is usually people distributing source code who insist on using tarballs.

        • duncesplayed@lemmy.one
          link
          fedilink
          English
          arrow-up
          0
          ·
          edit-2
          1 year ago

          Are zip and 7z really that much easier?

          tar cf foo.tar.xz wherever/
          zip -r foo.zip wherever/
          7z a foo.7z wherever/
          

          I get that tar needs an f for no-longer-relevant reasons whereas other tools don’t, but I never understood the meme about it beyond that. Is c for “create” really that much worse than a for “add”?