How do I install g++ 4.5 on ubuntu 10.10?

Doug dmcgarrett at optonline.net
Fri Nov 19 04:56:04 UTC 2010


On 11/18/2010 08:28 PM, Ric Moore wrote:
> /snip/
>> http://packages.ubuntu.com/maverick/g++-4.5
>> Using apt-get to install should pull in all required dependencies:
>> https://launchpad.net/ubuntu/+source/gcc-4.5
>>
>> As a test, I've just installed it:
>>
>> $ apt-cache policy g++-4.5
>> g++-4.5:
>>    Installed: 4.5.1-7ubuntu2
>>    Candidate: 4.5.1-7ubuntu2
>>    Version table:
>>   *** 4.5.1-7ubuntu2 0
>>          500 http://us.archive.ubuntu.com/ubuntu/ maverick/main amd64
>> Packages
>>          100 /var/lib/dpkg/status
>>      
>
/snip/

Please help me to learn something.  I've always heard that the syntax is 
"apt-get install somefile"
Now I see apt-cache policy.  I checked man apt, which led me to man 
apt-cache, which, in this distro
(PCLOS) does not show "policy" as an option.  It is not obvious to me 
why you would use this at all,
except in the case ( -showpkg) where you want to check dependencies, etc.
(I have Ubuntu, but it's not up at the moment.)  Thanx.
Linux-verderber, doug

-- 
Blessed are the peacemakers...for they shall be shot at from both sides. --A. M. Greeley





More information about the ubuntu-users mailing list