• yum
yum provides <command> # 查看提供command命令的包列表
  • centos下g++安装包名字叫做:gcc-c++
sudo yum -y install gcc-c++