'How to install only compiler and Debugger through msys2?

I need updated GCC and GDB, as I have to learn c++(20) and practice some new features of it. But while installing I got a lot of things installed with msys2. Its quite hard to understand why msys2 needs this much space (refer image). Is there a specific command through which I can just install/get GCC and GDB. Any leads would be appreciated. Thanks in Advance.

Reason of Request: My HDD is just 500GB, so I have to think about space optimization and memory occupied by the programs.

What I did: Installed msys2 interface from there official website. After successful installation, I opened msys2.exe command line terminal from installation directory and used commands as follows: Let me know if I've done something wrong.

  1. pacman -S mingw-w64-ucrt-x86_64-gcc
  2. pacman -S mingw-w64-ucrt-x86_64-gdb
  3. pacman -S mingw-w64-ucrt-x86_64-make

Hard to understand why msys2 needs this much space



Sources

This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.

Source: Stack Overflow

Solution Source