add tar/gzip to windows command line

后端 未结 4 1877
栀梦
栀梦 2021-01-16 17:58

As the title says - anyone know of a method to add tar/gzip to the command line in Windows? I\'ve installed Cygwin - but don\'t know if I have to add something to the PATH e

4条回答
  •  予麋鹿
    予麋鹿 (楼主)
    2021-01-16 18:15

    9 years later (2019), a more modern option is to uncompress the latest Git for Windows (like PortableGit-2.17.0-64-bit.7z.exe).
    It comes with 250+ linux command compiled for Windows, including tar and gzip.
    No Cygwin needed.

    But an even more recent option is the Command Line in Windows 10 version 1803: it includes a native tar and curl, right from your regular CMD.
    (not gzip though). See announcement.

    C:\Users\vonc>C:\Windows\System32\tar.exe --version
    bsdtar 3.3.2 - libarchive 3.3.2 zlib/1.2.5.f-ipp
    

    Nothing to install!

提交回复
热议问题