如何在centOS上 apt-get install build-essential

https://access.redhat.com/solutions/1310043,

使用命令 yum group list 可以查看已经安装的套件和可以安装的套件,
试一下

yum groups mark install "Development Tools"
yum groups mark install "Development Tools"
yum groups mark convert "Development Tools"
yum groupinstall "Development Tools"

实在不行就使用yum group info 'Development Tools'
挨个安装

安装后可以使用yum group list 查看

[root@localhost sharefolder]# yum group list
Loaded plugins: fastestmirror, langpacks
Loading mirror speeds from cached hostfile
 * base: ftp.sjtu.edu.cn
 * epel: mirrors.aliyun.com
 * extras: ftp.sjtu.edu.cn
 * remi-safe: mirror.innosol.asia
 * updates: mirrors.aliyun.com
Installed Environment Groups:
   GNOME Desktop
Available Environment Groups:
   Minimal Install
   Compute Node
   Infrastructure Server
   File and Print Server
   Cinnamon Desktop
   MATE Desktop
   Basic Web Server
   Virtualization Host
   Server with GUI
   KDE Plasma Workspaces
   Development and Creative Workstation
Installed Groups:
   Development Tools
   Graphical Administration Tools
Available Groups:
   Cinnamon
   Compatibility Libraries
   Console Internet Tools
   Educational Software
   Electronic Lab
   Fedora Packager
   General Purpose Desktop
   Haskell
   Legacy UNIX Compatibility
   MATE
   Milkymist
   Scientific Support
   Security Tools
   Smart Card Support
   System Administration Tools
   System Management
   TurboGears application framework
   Xfce
Done

你可能感兴趣的:(centOS)