I want to know how to know whether gcc g is installed in my system
`whereis gccwhereis g++
`
Execute
yum install gcc
If you have installed it, he will tell you that you have installed it If you have not installed it, he will ask you if you want to install it
rpm -qa|egrep 'gcc|g\+\+'
Press gcc and press Enter, or press which gcc and press Enter.
yum --disablerepo=* --enablerepo=c6-media install gcc gcc-c++
Enter gcc directly in the terminal to know whether gcc is installed
`
whereis gcc
whereis g++
`
Execute
If you have installed it, he will tell you that you have installed it
If you have not installed it, he will ask you if you want to install it
rpm -qa|egrep 'gcc|g\+\+'
Press gcc and press Enter, or press which gcc and press Enter.
yum --disablerepo=* --enablerepo=c6-media install gcc gcc-c++
Enter gcc directly in the terminal to know whether gcc is installed