How to obtain older versions of packages using MSYS2?

后端 未结 1 1762
别那么骄傲
别那么骄傲 2021-02-01 04:58

I decided to try CLion for Windows, which recommends either MinGW or Cygwin for compilation.

I installed the MSYS2 package manager into the default folder, C:\\msy

1条回答
  •  被撕碎了的回忆
    2021-02-01 05:05

    No, MSYS2 does not directly support installing old versions of packages. Here are some things you can do though:

    • Look at http://repo.msys2.org/ to see if the version you are looking for happens to still be on the server. It will be deleted eventually but you might get lucky. You can download it and then install it with pacman -U filename.tar.xz
    • The repositories https://github.com/Alexpux/MINGW-packages and https://github.com/Alexpux/MSYS2-packages have the build scripts for all the MSYS2 packages so you could look in their version history to find the script for building the package you are interested in.

    GCC is one of the harder packages to build and work with so it might be difficult for you to compile it from source. Also beware that the C++ ABI changed between GCC 4 and 5 or something like that, so binaries you build with the old GCC might not work with any of the MSYS2 C++ shared libraries compiled with GCC 5.

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