This question already has an answer here:

I have downloaded the latest version of ubuntu Desktop 14.04.1 LTS. The gcc version is gcc (Ubuntu 4.8.2-19ubuntu1) 4.8.2. I would like to change it to the 4.7.2 20130108 [gcc-4_7-branch revision 195012].

I will be very thankful if you could please help me through it.

marked as duplicate by Alvar, Eric Carvalho, karel, Eliah Kagan, zwets Sep 15 '14 at 20:56

This question has been asked before and already has an answer. If those answers do not fully address your question, please ask a new question.

Browse other questions tagged or ask your own question.