[CentOS6이하]
# CentOS6이하는 업데이트 지원이 중단되면서 yum사용시 에러가 발생하기 때문에, 미러리스트를 새로 설정해준다.
yum update -y
echo "[https://vault.centos.org/6.10/os/x86_64/](https://vault.centos.org/6.10/os/x86_64/)" > /var/cache/yum/x86_64/6/base/mirrorlist.txt \
echo "[http://vault.centos.org/6.10/extras/x86_64/](http://vault.centos.org/6.10/extras/x86_64/)" > /var/cache/yum/x86_64/6/extras/mirrorlist.txt \
echo "[http://vault.centos.org/6.10/updates/x86_64/](http://vault.centos.org/6.10/updates/x86_64/)" > /var/cache/yum/x86_64/6/updates/mirrorlist.txt
\# 추가
yum update -y
echo "[http://vault.centos.org/6.10/sclo/x86_64/rh/](http://vault.centos.org/6.10/sclo/x86_64/rh/)" > /var/cache/yum/x86_64/6/centos-sclo-rh/mirrorlist.txt \
echo "[http://vault.centos.org/6.10/sclo/x86_64/sclo/](http://vault.centos.org/6.10/sclo/x86_64/sclo/)" > /var/cache/yum/x86_64/6/centos-sclo-sclo/mirrorlist.txt \
[common]
yum update -y
yum install -y vim net-tools wget
# git, gcc, cmake 버전이 낮기 때문에 devtoolset을 이용해 최신 개발버전을 설치한다
yum install -y centos-release-scl
안되면.. ⇒ https://www.notion.so/centos-dev-setup-c7b3e4169bfd45de8a15a05f5d160daf
yum install -y devtoolset-8
echo "source /opt/rh/devtoolset-8/enable" >> ~/.bashrc
scl enable devtoolset-8 bash
[cmake 3.21.0]
yum install -y openssl-devel
wget https://github.com/Kitware/CMake/releases/download/v3.21.0/cmake-3.21.0.tar.gz
tar -xvf cmake-3.21.0.tar.gz
cd cmake-3.21.0
./bootstrap
make -j8 && make install
[git]
yum install [http://opensource.wandisco.com/centos/6/git/x86_64/wandisco-git-release-6-1.noarch.rpm](http://opensource.wandisco.com/centos/6/git/x86_64/wandisco-git-release-6-1.noarch.rpm) \
yum install -y git