-
-
Save xukeek/66376108885bf3a76063d15dd0607bb2 to your computer and use it in GitHub Desktop.
How to install ant on centos
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# download and install | |
antversion=1.10.3 | |
wget http://archive.apache.org/dist/ant/binaries/apache-ant-${antversion}-bin.tar.gz | |
sudo tar xvfvz apache-ant-${antversion}-bin.tar.gz -C /opt | |
sudo ln -sfn /opt/apache-ant-${antversion} /opt/ant | |
sudo sh -c 'echo ANT_HOME=/opt/ant >> /etc/environment' | |
sudo ln -sfn /opt/ant/bin/ant /usr/bin/ant | |
# check installation | |
ant -version | |
#cleanup | |
rm apache-ant-${antversion}-bin.tar.gz |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment