add tar/gzip to windows command line

后端 未结 4 1844
栀梦
栀梦 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!

    0 讨论(0)
  • 2021-01-16 18:17

    You can install archiver instead of adding command in Windows cmd.exe, There only 10 step to install and create .tar.gz file: 1. Open: https://www.win-rar.com/download.html or https://www.7-zip.org/download.html 2. Download Winrar Installer. 3. Open Winrar Installer. 4. Click "Agree" on Agreement. 5. Install Winrar. 6. Wait until Winrar fully installed in your computer. 7. Open file you want to compress with .gz 8. Right click the file. 9. Click "Add to Archive", and 10. Done. But, if you still want to add command in Windows cmd.exe you can use that Cygwin. Tutorial link: https://www.youtube.com/watch?v=Rb8qtbXGA6I

    0 讨论(0)
  • 2021-01-16 18:20

    The method I've used to solve this is to install Cygwin then place the path to the bin directory in the PATH variable.

    0 讨论(0)
  • 2021-01-16 18:30

    Install UnxUtils - it's a set of GNU utilities ported to Windows, sort of like Cygwin but they also work outside the Cygwin environment.

    0 讨论(0)
提交回复
热议问题