I would like to upgrade GNU Awk version 3.1.8 to the latest version. How can I upgrade versions using Ubuntu 12.04?
I would like to upgrade GNU Awk version 3.1.8 to the latest version. How can I upgrade versions using Ubuntu 12.04?
Rather than compiling from source as in the answer of @maggotbrain, and totally confuse your package management, use a newer package instead.
Download the one for Quantal here (4.0.1) and install using for example
sudo dpkg -i gawk_4.0.1+dfsg-2_amd64.deb
It has very standard dependencies easily met in Ubuntu Precise, so this is a very trivial backport.
Advantages:
However, don't just blindly upgrade software on your system. Keeping older, stable versions is part of the release schedule of Ubuntu. This makes sure developers can 'freeze' the shared libraries and use them efficiently. Security and severe bugs will be backported to the versions as released with the OS release.