Assume that you are on macOS, and you need headfiles of boost.
(Search 'boost' on github.com or gitee.com, and clone)
git clone https://gitee.com/mirrors/boost.git --depth=1
git pull for historical versions
cd boost/
git pull --unshallow
Reset to special commit version, check from its release page on github.com, such as commit 436ad1d
git reset --hard 436ad1d
Update sub-modules
git submodule update --init
Main process
./bootstrap.sh
./b2 ## (Maybe ./b2 install)
- Headfiles will be placed to /usr/local/include/boost/