[[Email protected] ~]# CD/
[Email protected]/]# ls-a
. . autofsck Boot cmake-3.1.3.tar.gz Dev home lib64 media opt root selinux sys usr
.. Bin cmake-3.1.3 Data etc Lib Lost+found mnt proc sbin SRV tmp var
[Email protected]/]# RM-RF cmake-3.1.3
[Email protected]/]# TAR-ZXVF cmake-3.1.3.tar.gz
Cmake-3.1.3/.gitattributes
Cmake-3.1.3/.hooks-config.bash
Tar:skipping to Next Header
Gzip:stdin:invalid compressed Data--format violated
Tar:child returned status 1
Tar:error isn't recoverable:exiting now
The package cmake-3.1.3.tar.gz is downloaded via FTP and requires a binary download to ensure that the decompression does not go wrong
So:
[[Email protected]/]# FTP 192.168.66.180
Connected to 192.168.66.180 (192.168.66.180).
Microsoft FTP Service
Name (192.168.66.180:root): View
331 Password required for view.
Password:
User logged in.
Remote system type is WINDOWS_NT.
Ftp> bin
The Type set to I.
Ftp> ls-a
227 Entering Passive Mode (192,168,66,180,214,173).
Data connection already open; Transfer starting.
03-05-15 05:41pm 588 192.168.66.176.pub
03-06-15 05:05pm 392 Authorized_keys
03-11-15 09:26am 5959549 cmake-3.1.3.tar.gz
03-13-15 02:32pm 59108 ftp-0.17-54.el6.x86_64.rpm
03-06-15 05:06pm 1702 Id_rsa
03-13-15 04:03pm 33115859 Mysql-5.6.23.tar (1). gz
03-03-15 05:26pm 1933734 pcre-8.34.tar.gz
226 Transfer complete.
Ftp> Get cmake-3.1.3.tar.gz
Local:cmake-3.1.3.tar.gz remote:cmake-3.1.3.tar.gz
227 Entering Passive Mode (192,168,66,180,214,174).
Data connection already open; Transfer starting.
226 Transfer complete.
5959549 bytes received in 0.513 secs (11617.78 kbytes/sec)
Ftp> bye
221 Goodbye.
Important command: Bin means download in binary mode
centos6.5 Download source package via FTP error Error