linux 之卸载已安装低版本gcc

rpm -q gcc

zdg@localhost gcc-build-4.8.2]$ rpm -q gcc
gcc-4.4.7-23.el6.x86_64
[zdg@localhost gcc-build-4.8.2]$

sudo rpm -e gcc-4.4.7-23.el6.x86_64

zdg@localhost gcc-build-4.8.2]$ sudo rpm -e gcc-4.4.7-23.el6.x86_64
[sudo] password for zdg: 
[zdg@localhost gcc-build-4.8.2]$ 
[zdg@localhost gcc-build-4.8.2]$ 
[zdg@localhost gcc-build-4.8.2]$ 
[zdg@localhost gcc-build-4.8.2]$ 
[zdg@localhost gcc-build-4.8.2]$ 
[zdg@localhost gcc-build-4.8.2]$ 
[zdg@localhost gcc-build-4.8.2]$ gcc 
bash: /usr/bin/gcc: No such file or directory

你可能感兴趣的:(linux,编程)