Ask Ubuntu is a question and answer site for Ubuntu users and developers. It's 100% free.

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

Can I update gcc-4.4 to gcc-4.5 without updating Ubuntu 11.04 to Ubuntu 11.10?
If yes then how?

share|improve this question

migrated from Dec 12 '11 at 14:56

This question came from our site for users of Linux, FreeBSD and other Un*x-like operating systems.

Ubuntu 11.04 has GCC 4.5 installed by default. Check gcc --version. Ubuntu 11.10 has GCC 4.6 installed by default. Did you mean that? – ams Dec 12 '11 at 16:35
up vote 2 down vote accepted

gcc 4.5 is the default version of gcc on Ubuntu 11.04. So just install the default package, gcc or g++, and it will also install gcc 4.5 or g++ 4.5 respectively. If you prefer you can just install gcc-4.5 directly. So either

apt-get install gcc


apt-get install gcc-4.5

should work, if you really just want gcc (as opposed to g++ for example).

share|improve this answer
I think installing the gcc-4.5 package just installs the gcc-4.5 program, but doesn't affect the plain gcc program? So I'd suggest option one. – ams Dec 12 '11 at 16:34
Thanks ams & Faheem. Using gcc --version I got that I had already gcc 4.5 & now I also upgrade it with gcc-4.6.2. – Hit's Dec 13 '11 at 4:10

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.