Unix & Linux Stack Exchange is a question and answer site for users of Linux, FreeBSD and other Un*x-like operating systems. It's 100% free, no registration required.

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

I have gcc-4.6.3 installed in my PC.but for my project I need gcc-4.4.3 version. I do not mind removing gcc-4.6.3 but I badly need gcc-4.4.3. How can I downgrade? or how can I keep two gcc and make gcc-4.4.3 as primary GCC.?

share|improve this question
What is your distribution/OS? – Mat Mar 11 '13 at 6:32
Is it really impossible to port the code forward? It shouldn't be too hard, and you reap the benefits of lots of impovements in GCC (and the languages). – vonbrand Mar 11 '13 at 14:12

apt-get or yum should simplify a lot for you. You can even compile your own and use that path and it will pick the gcc of the path you specified.

share|improve this answer
The package repositories won't carry museum-worthy versions of GCC around (except possibly for oldish, "enterprise" distributions, but those will soon be end-of-life too). – vonbrand Mar 11 '13 at 14:12

In ubuntu, (and others maybe), you can have both, go to synaptic package manager then choose the version you want to use, install it, the in terminal enter : "gcc" without the (") the press tab twice or more the terminal then will show you all gcc versions, type the one you want (always) e.g. gcc-4.2 -o yourfile.c

share|improve this answer

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.