Remove gcc from Ubuntu
81,140
Solution 1
There is one thing (thank you @kos):
I definitely wouldn't remove
gcc
in general, but if I had to I wouldn't do it this way: this will remove alsobuild-essential
and hencemake
; for one, if you have the nVidia > drivers installed it will remove those as well, since they depend onmake
, 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
Solution 2
use below command , --purge remove option is equivalent to purge
sudo apt-get --purge remove gcc-4.9
according apt-get
manual:
--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.
Related videos on Youtube
Author by
Noober
Updated on September 18, 2022Comments
-
Noober over 1 year
I want to completely remove
gcc
from Ubuntu. I am usinggcc 4.9
which happens to be the latest version.How can I remove it completely from my system?
-
Admin almost 9 yearsCan I ask you why ? You will need it eventually
-
Admin over 5 yearsProbably trying to get nvidia drivers to work
-
-
Noober almost 9 yearsI just wanted to remove it and install it all over again. If I install it again will it be a problem still?
-
A.B. almost 9 yearsyes. Use
sudo apt-get install --reinstall gcc-4.9
instead -
A.B. almost 9 yearsequivalents are always good =)
-
Gabriel Fair over 5 yearsWhat makes it dangerous?