Take the 2-minute tour ×
Ask Ubuntu is a question and answer site for Ubuntu users and developers. It's 100% free, no registration required.

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
1  
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
add comment

migrated from unix.stackexchange.com Dec 12 '11 at 14:56

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

1 Answer

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

or

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
add comment

Your Answer

 
discard

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.