How to add functional pacman to Git for Windows
Sprawdzamy obecne pakiety msys2, lista mirrorów tutaj: # https://www.msys2.org/dev/mirrors/ # tworzymy zmienne z nazwami pakietów zgodnie z architekturą (np. x86_64 )
pacman=" pacman-6.0.1-18-x86_64.pkg.tar.zst pacman-mirrors-20220205-1-any.pkg.tar.zst msys2-keyring-1~20220623-1-any.pkg.tar.zst " zstd=zstd-1.5.2-1-x86_64.pkg.tar.xz curl curl https://raw.githubusercontent.com/msys2/MSYS2-packages/7858ee9c236402adf569ac7cff6beb1f883ab67c/pacman/pacman.conf -o /etc/pacman.conf for f in $pacman; do curl https://mirrors.tuna.tsinghua.edu.cn/msys2/msys/$HOSTTYPE/$f -fo ~/Downloads/$f; done curl -L https://github.com/mcgitty/pacman-for-git/raw/main/$zstd -o ~/Downloads/$zstd cd / tar x --xz -vf ~/Downloads/$zstd usr for f in $pacman; do tar x --zstd -vf ~/Downloads/$f usr etc 2>/dev/nul; done mkdir -p /var/lib/pacman; ln -s `which gettext` /usr/bin/ pacman-key --init pacman-key --populate msys2 pacman -Syu export URL=https://github.com/git-for-windows/git-sdk-64/raw/main cat /etc/package-versions.txt | while read p v; do d=/var/lib/pacman/local/$p-$v; mkdir -p $d; echo $d; for f in desc files install mtree; do curl -sSL "$URL$d/$f" -o $d/$f; done; done pacman -S pacman --overwrite '*' pacman -Syu --overwrite '*' pacman -Syu