MSYS2 설치 및 추가 패키지 설치

1. msys2 base 다운로드
  https://repo.msys2.org/distrib/x86_64/
  에서 최신버전을 다운로드
    예) msys2-base-x86_64-20231026.sfx

2.msys2.exe 실행

3.패키지 데이터베이스와 베이스 패키지 업데이트
  pacman -Syu --noconfirm

4.베이스 패키지들의 나머지들 업데이트
  pacman -Su --noconfirm

5. msys2.exe 실행 후 추가 패키지 설치
  ※패키지 목록 검색:
    https://packages.msys2.org/queue
    https://repo.msys2.org/msys

  pacman -Su --noconfirm
  pacman -S --noconfirm bzip2
  pacman -S --noconfirm curl
  pacman -S --noconfirm diffutils
  pacman -S --noconfirm file
  pacman -S --noconfirm gawk
  pacman -S --noconfirm gnupg
  pacman -S --noconfirm grep
  pacman -S --noconfirm gzip
  pacman -S --noconfirm lftp
  pacman -S --noconfirm libiconv
  pacman -S --noconfirm mingw-w64-x86_64-astyle
  pacman -S --noconfirm mingw-w64-x86_64-binutils
  pacman -S --noconfirm mingw-w64-x86_64-bzip3
  pacman -S --noconfirm mingw-w64-x86_64-dnslookup
  pacman -S --noconfirm mingw-w64-x86_64-ntldd
  pacman -S --noconfirm mingw-w64-x86_64-png2ico
  pacman -S --noconfirm mosh
  pacman -S --noconfirm mutt
  pacman -S --noconfirm openssh
  pacman -S --noconfirm openssl
  pacman -S --noconfirm procps-ng
  pacman -S --noconfirm psmisc
  pacman -S --noconfirm rsync
  pacman -S --noconfirm sshpass
  pacman -S --noconfirm tar
  pacman -S --noconfirm unzip
  pacman -S --noconfirm wcd
  pacman -S --noconfirm wget
  pacman -S --noconfirm whois
  pacman -S --noconfirm xz
  pacman -S --noconfirm zip
  pacman -Su --noconfirm

6. 불필요한 파일 정리 및 /bin으로 실행파일 몰아넣기
  MKDIR bin
  MOVE /Y %CD%\usr\bin\*.* %CD%\bin
  MOVE /Y %CD%\mingw64\bin\*.* %CD%\bin
  DEL /F /Q %CD%\bin\*.
  DEL /F /Q %CD%\bin\*.sh
  ATTRIB +A -S -H -R /D /S %CD%\bin
  ATTRIB +A -S -H -R /S %CD%\bin\*.*
  DEL /F /Q %CD%\*.*
  RMDIR /S /Q %CD%\clang32
  RMDIR /S /Q %CD%\clang64
  RMDIR /S /Q %CD%\clangarm64
  RMDIR /S /Q %CD%\dev
  RMDIR /S /Q %CD%\etc
  RMDIR /S /Q %CD%\home
  RMDIR /S /Q %CD%\mingw32
  RMDIR /S /Q %CD%\mingw64
  RMDIR /S /Q %CD%\opt
  RMDIR /S /Q %CD%\tmp
  RMDIR /S /Q %CD%\ucrt64
  RMDIR /S /Q %CD%\usr
  RMDIR /S /Q %CD%\var
  CD ..
  REN msys64 cmd_msys2_64bit

7. nircmd 다운로드
  https://www.nirsoft.net/utils/nircmd.zip
  다운로드 받아 /bin에 넣는다.

■mingw GCC 설치
  pacman -S --noconfirm --needed base-devel mingw-w64-x86_64-toolchain

■Python PIP 설치
  pacman -S --noconfirm mingw-w64-x86_64-python-pip

■CLang 설치
  pacman -S --noconfirm mingw-w64-x86_64-clang
위로 스크롤