How to obtain older versions of packages using MSYS2?

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:\msys64, updated it by running update-...