I want to completely remove
gcc from Ubuntu. I am using
gcc 4.9 which happens to be the latest version.
How can I remove it completely from my system?
Ask Ubuntu is a question and answer site for Ubuntu users and developers. It only takes a minute to sign up.Sign up to join this community
There is one thing (thank you @kos):
I definitely wouldn't remove
gccin general, but if I had to I wouldn't do it this way: this will remove also
make; for one, if you have the nVidia > drivers installed it will remove those as well, since they depend on
make, plus who knows what other stuff.
With other words, know what you do. ;-)
If you only need a reinstall, use
sudo apt-get install --reinstall gcc-4.9
If you really, really need to remove
gcc-4.9, use this short and dangerous command:
sudo apt-get purge gcc-4.9
use below command , --purge remove option is equivalent to purge
sudo apt-get --purge remove gcc-4.9
--purge Use purge instead of remove for anything that would be removed. An asterisk ("*") will be displayed next to packages which are scheduled to be purged. remove --purge is equivalent to the purge command. Configuration Item: APT::Get::Purge.