Download binary distribution from http://ant.apache.org, unpack in /usr/local and make a symlink: /usr/local# ln -s apache-ant-XXXX ant
According to Manual add ant bin directory to your invironment variables:
# /etc/profile.d/jdk.sh ... export ANT_HOME=/usr/local/ant export PATH=${PATH}:${ANT_HOME}/bin