Linux Tools on Windows

Linux Tools on Windows

Individual Essential Tools

wget

Install wget if needed in future, and add that dir to the path:

1
2
3
mkdir \bin\tools
\bin\gtools\pathed /MACHINE /APPEND C:\bin\tools
powershell.exe -Command "Invoke-WebRequest -OutFile /bin/tools/wget.exe https://eternallybored.org/misc/wget/1.20.3/64/wget.exe"

Collections of Linux Tools

Those projects provides native Windows ports of various GNU and open source tools. The main ones are GNU Core Utilities aka coreutils that include the following commands.

Collection: GNU on Windows (GoW)

The whole collection, latest version, of GoW (GNU on Windows) can be downloaded:

wget --no-check-certificate https://github.com/bmatzelle/gow/downloads  -O - 2>nul ^
| sed -n "0,/.*\(\/downloads\/bmatzelle\/gow\/Gow-.*\.exe\)"".*/s//https:\/\/github\.com\1/p" ^
| wget --no-check-certificate -i - -O Gow-Latest.exe

And install silently:

start /wait Gow-Latest.exe /S /D="%ProgramFiles%\Tools" && echo Gnu On Windows (GOW) Installed

It adds itself to a path variable and removes from the path on uninstallation.

Collection: GnuWin32

GnuWin32 je moguće download sve toolove zajedno, upotrebom GetGnuWin32 arhive ili pojedinačno sa GnuWin32, oba na Sourceforge.

coreutils on windows - CoreUtils for Windows Ali mislim da ceo paket GnuWin Package može i da se skine sa util-linux.

Download any singular GnuWin32 utility (you have to have wget), and install it

wget -nc http://gnuwin32.sourceforge.net/downlinks/sed.php
for /f "tokens=*" %f in ('dir sed-*-setup.exe /B') do @(start /wait %f /silent /dir="%ProgramFiles%\Tools" /noicons /components="bin" /tasks="" && echo Sed Installed)

Nisam siguran

Note about escaping in sed

You simply must always, ALWAYS use \x22 instead of double quote in SED! For the backslash \, you must always use \x5c. So in Sed in Windows (both GnuWin and MSYS) you should use \x5c\x5c, because two backslashes \\ is not relieble - doesn’t have the same effect in both variants.


wget –no-check-certificate https://github.com/downloads/bmatzelle/gow/Gow-0.7.0.exe

Gow (Gnu On Windows) is the lightweight alternative to Cygwin. It uses a convenient NSIS installer that installs over 100 extremely useful open source UNIX applications compiled as native win32 binaries. It is designed to be as small as possible, about 18 MB, as opposed to Cygwin which can run well over 100 MB depending upon options. It’s easy to install using scoop install gow ali pazi, jer mnogo utilitija iz njega su isti kao u nekim odvojenim paketima, na primer awk, bash, curl, grep, gzip, less, wget, which, etc.

Alternatives to Gow are not any of the MinGW as it is only compiler collection (available as ˙scoop install mingw˙) nor MSYS/MSYS2 (scoop install mysys2) as it is command-shell wrapper. As the last Gow update were in 2016, the real current and maintained alternatives are:

  • ezwinports ima svega, ali instalacija nije laka, iako ima unofficial buckets
  • UnxUtils ali ima baš malo toolova. Install jednostavno scoop install unxutils ali oni preporučuju Rust varijante kao zamenu sa scoop install uutils-coreutils

Pošto je svaki utility odvojen fajl, nije lako instalirati. Mora pojedinačno da se skine i instalira: directory - Download whole folder from SourceForge - Stack Overflow ezwinports bulk download and extract

Ali pošto je zezanje, zaboravi


Suggestions like this on how to add more utilities to git bash for windows, wget, make doesn’t make sense for me, now that we have “scoop”.

date 04. May 2013 | modified 10. Jun 2024
filename: Windows » CLI » Classic Linux Tools