卸载gcc [英] Uninstalling gcc
问题描述
我想通过终端卸载我的gcc.当我输入
I want to uninstall my gcc by terminal. When I type
gcc --version
输出为
gcc (Ubuntu 5.4.0-6ubuntu1~16.04.4) 5.4.0 20160609
Copyright (C) 2015 Free Software Foundation, Inc.
This is free software; see the source for copying conditions. There is NO
warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
有人可以帮助我吗?之后如何安装最新版本的gcc?
Could anyone help me? How can I install the last version of gcc after that?
推荐答案
使用以下命令(将< version>替换为适当的版本):
Use the following command (Replace <version> with the appropriate version):
sudo apt-get --purge remove gcc-<version>
您可以使用apt安装程序的特定版本,可以使用以下命令.(用适当的版本替换< version>)
You can install a specific version of a program using apt, you can use the following command. (Replace <version> with the appropriate version)
sudo apt-get install gcc=<version>
或者,您可以使用 Synaptic软件包管理器 .
Alternatively, you can use Synaptic Package Manager.
sudo apt-get update
sudo apt-get install synaptic
请注意,某些程序可能需要GCC.如果您在安装程序/驱动程序时遇到任何驱动程序问题,您可以使用以下方法安装最新的 GCC:
Note that, you might need GCC for some programs. If you face any driver issues while installing programs / drivers you can install the latest GCC by using:
sudo apt-get install gcc
这篇关于卸载gcc的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!