Example of searching for other packages: pacman -Ss fortran ==> mingw-w64-i686-gcc-fortran
List all packages: pacman -S -l
If you require a proxy server to access the internet, you may need the following additional settings in MSYS2. You might need to do this before the above pacman commands will work properly.
Edit ~/.bash_profile and add appropriate values for
HTTPS_PROXY="https://myproxy.domain.com:8080/"
HTTP_PROXY="http://myproxy.domain.com:8080/"
http_proxy="http://myproxy.domain.com:8080/"
https_proxy="https://myproxy.domain.com:8080/"
Edit ~/.wgetrc and add these two lines
use_proxy=yes
http_proxy=http://myproxy.domain.com:8080/
Edit c:/msys2/etc/pacman.conf and uncomment line 19 (wget)
Close and restart the MSYS2 shell.
Add c:\msys64\mingw64\bin to PATH so that CMake and Visual Studio can find gfortran.exe.