Download the package: http://www2.futureware.at/~nickoe/msys2-mirror/msys/x86_64/rsync-3.1.2-2-x86_64.pkg.tar.xz
Extract it and move rsync.exe
to %HOMEDRIVE%%HOMEPATH%\AppData\Local\Programs\Git\usr\bin
.
Download the package: http://www2.futureware.at/~nickoe/msys2-mirror/msys/x86_64/rsync-3.1.2-2-x86_64.pkg.tar.xz
Extract it and move rsync.exe
to %HOMEDRIVE%%HOMEPATH%\AppData\Local\Programs\Git\usr\bin
.
You saved my day. Thank you!
for me worked C:\Program Files\Git\cmd\
Git Bash's root directory maps to the root of your Git SCM installation which may be in %programFiles% or it may not.
You can run cygpath -w /
to get Git Bash to tell you where it's running from.
Even if you're running PortableGit like I am, it will print out the Windows equivalent path of Git's root, which is the directory where you should be extracting the .tar.xz file using the tar -xf
command.
But why bother with the Windows path at all?
You can do everything from within Git Bash!
#Make a temporary directory
tempDir=$(mktemp -d)
#go into that dir
pushd "$tempDir"
#download the file using its original name
curl -O http://www2.futureware.at/~nickoe/msys2-mirror/msys/x86_64/rsync-3.1.2-2-x86_64.pkg.tar.xz
#cd to Git Bash root directory (which is your Git directory, so you don't need to look it up or assume it's in %programfiles%)
cd /
#extract the files to their proper places (all of them, not just rsync.exe)
tar -xf "${tempDir}/rsync-3.1.2-2-x86_64.pkg.tar.xz"
#get back to your original directory
popd
#clean up that temp directory and the downloaded .tar.xz file
rm -rf "$tempDir"
#see that rsync is in the path now
which rsync
Life saver
@hisplan Thank you very much!
Thanks @charlie-cadmv, your solution worked great!
I was extracting the .xz manually, but simply dropping the .exe to the right folder wasn't working. I was getting errors about missing .dll files.
Using the tar command everything is working great. My guess is that the tar command is smart enough to know where to put each file it extracts, even though I didn't find any .dll files inside the .xz (Maybe they were hidden deep?).
I really gotta learn the difference and how to work with all these funky file source files.
P.S
Link is dead, but you can find the .xz file here: http://www2.futureware.at/~nickoe/msys2-mirror/msys/i686/
Link no longer works, just search for "rsync" in the official msys2 repo instead: http://repo.msys2.org/msys/x86_64/
The newest version requires two additional packages to make it work: libxxhash
and liblz4
.
The packages are now compressed with zstd, unpack them inside git bash with zstd -d <package>
or use 7zip with ZStandard support: https://github.com/mcmilk/7-Zip-zstd/releases
Link no longer works, just search for "rsync" in the official msys2 repo instead: http://repo.msys2.org/msys/x86_64/
The newest version requires two additional packages to make it work:libxxhash
andliblz4
.
The packages are now compressed with zstd, unpack them inside git bash withzstd -d <package>
or use 7zip with ZStandard support: https://github.com/mcmilk/7-Zip-zstd/releases
Thank you @fotcorn for your note,
For my case I also need to download the http://repo.msys2.org/msys/x86_64/libzstd-1.4.8-1-x86_64.pkg.tar.zst.
So total of four packages
Copy four libs to the same folder, then use https://github.com/mcmilk/7-Zip-zstd/releases, to extract all of them. After that, copy folder "usr" to "C:\Program Files\Git".
And it works
Then use https://github.com/mcmilk/7-Zip-zstd/releases, to extract all of them (extract 4 libs to folder "usr"). Then copy folder "usr" to "C:\Program Files\Git".
And it works
The "(extract 4 libs to folder "usr")" part confused me. Each of these packages contains their own /usr/ directory tree (in particular /usr/lib, /usr/bin). Just extract all these /usr/* to a new "usr" folder and then copy it to "C:\Program Files\Git". It works, thank you!
Then use https://github.com/mcmilk/7-Zip-zstd/releases, to extract all of them (extract 4 libs to folder "usr"). Then copy folder "usr" to "C:\Program Files\Git".
And it worksThe "(extract 4 libs to folder "usr")" part confused me. Each of these packages contains their own /usr/ directory tree (in particular /usr/lib, /usr/bin). Just extract all these /usr/* to a new "usr" folder and then copy it to "C:\Program Files\Git". It works, thank you!
Thanks @timmy-ly,
I edited the it a bit. Copy four libs to the same folder, and extract them all, then copy the "usr" folder to "C:\Program Files\Git".
Where can I find the public key for checking downloads from http://www2.futureware.at/~nickoe/msys2-mirror/msys/x86_64/ ??
I found the fingerprint 81B3DB3F32C8A69E80C12875124374AB5E5E584A at the account of Nick Østergaard on lauchpad.net - but it seems to be expired.
The link has expired.
The link has expired.
A quick google search brings up these sites:
The process should be the same. Download, extract and put the .exe into a directory that is part of your PATH.
Please note that I did not verify above downloads. Use them at your own risk.
Link no longer works, just search for "rsync" in the official msys2 repo instead: http://repo.msys2.org/msys/x86_64/
The newest version requires two additional packages to make it work:libxxhash
andliblz4
.
The packages are now compressed with zstd, unpack them inside git bash withzstd -d <package>
or use 7zip with ZStandard support: https://github.com/mcmilk/7-Zip-zstd/releasesThank you @fotcorn for your note, For my case I also need to download the http://repo.msys2.org/msys/x86_64/libzstd-1.4.8-1-x86_64.pkg.tar.zst. So total of four packages
- rsync: http://repo.msys2.org/msys/x86_64/rsync-3.2.3-1-x86_64.pkg.tar.zst
- libxxhash: http://repo.msys2.org/msys/x86_64/libxxhash-0.8.0-1-x86_64.pkg.tar.zst
- liblzr: http://repo.msys2.org/msys/x86_64/liblz4-1.9.3-1-x86_64.pkg.tar.zst
- libzstd: http://repo.msys2.org/msys/x86_64/libzstd-1.4.8-1-x86_64.pkg.tar.zst
Copy four libs to the same folder, then use https://github.com/mcmilk/7-Zip-zstd/releases, to extract all of them. After that, copy folder "usr" to "C:\Program Files\Git". And it works
thanks for your good works,it worked!
rename 76008178-1fbb4d80-5f07-11ea-9c47-31d8e84f5dd0.jpg -> rsync.exe