I am trying to install the latest apache ant to centos. I did as follows:
wget http://ant.apache.org/bindownload.cgi/apache-ant-1.8.2-bin.tar.gz
gzip -d apache-ant-1.8.2-bin.tar.gz
and I get the error as follows:
gunzip: apache-ant-1.8.2-bin.tar.gz: not in gzip format
However If do as follows:
- Download the tar.gz file from the GUI to a desktop folder
- Open up a terminal, navigate to the directory where the .gz has been downloaded.
- gzip -d apache-ant-1.8.2-bin.tar.gz
- tar -xvf apache-ant-1.8.2-bin.tar
Everything gets decompressed and extracted correctly.
But why does the first way does not work?
Thanks in advance
- Dario