Package management in git for windows?

前端 未结 6 463
你的背包
你的背包 2020-12-12 15:35

I\'m reading the github wiki for git-for-windows and it says that msys2 bundles pacman: https://github.com/git-for-windows/git/wiki/Package-management

But when I invo

6条回答
  •  轮回少年
    2020-12-12 16:18

    I did not want to move from my already working Git for Windows installation so I improvised a bit:

    1. Install Git for Windows SDK somewhere else. You'll need more than 3 GB of free space for that.
    2. Copy ${git-sdk}/usr/bin/pacman.exe to ${git}/usr/bin
    3. Copy ${git-sdk}/etc/pacman.conf and ${git-sdk}/etc/pacman.d to ${git}/etc
    4. Copy ${git-sdk}/var to ${git}/

    That's all. You can now open your Git Bash and run pacman -S python to install packages on your existing Git for Windows setup.

    You will need write access to Git for Windows directory. Also, your pacman now thinks it has a lot of packages installed (from SDK) but it did not stop me from using it.

提交回复
热议问题