Ubuntu – Old version of gcc for new Ubuntu

aptbackportgcc

Is there a repository containing packages for old versions of gcc, for the latest Ubuntu. I want to install gcc3 alongside gcc 4, for programs that need gcc3 specifically.

Best Answer

Or alternatively to the Debian snapshots Elazar posted in his answer, you can use the Ubuntu package repositories for the older Ubuntu releases: http://packages.ubuntu.com

Add them to the /etc/apt/sources.list as Elazar already described:

deb     http://archive.ubuntu.com/ubuntu/ hardy universe
deb-src http://archive.ubuntu.com/ubuntu/ hardy universe

The Hardy Universe repository is the one that contains gcc-3.4.

Related Question