Prompt for CentOS to execute FTP command ftp:command not Find solutions

Time:2021-5-12

When using CentOS, you need to use FTP to upload files, but when you get to the FTP command of the script, you will make an error

Copy code

The code is as follows:

ftp: command not found

If the FTP client is not installed, you need to re install it
The solution is to go to the official entrance http://mirror.centos.org/centos/5/os/i386/CentOS/ Find the FTP RPM package address, and then execute the installation

Implementation of 5. X version:

Copy code

The code is as follows:

rpm -Uvh http://mirror.centos.org/centos/5/os/i386/CentOS/ftp-0.17-35.el5.i386.rpm

Implementation of version 6. X:

32 bits:

Copy code

The code is as follows:

rpm -Uvh http://mirror.centos.org/centos/6/os/i386/Packages/ftp-0.17-54.el6.i686.rpm

64 bit:

Copy code

The code is as follows:

rpm -Uvh http://mirror.centos.org/centos/6/os/x86_64/Packages/ftp-0.17-54.el6.x86_64.rpm

The FTP command can be used after successful installation

Supplementary update: if the following error message is prompted after executing the above command:

Copy code

The code is as follows:

libc.so.6 is needed by ftp-0.17-35.el5.i386

You can install the dependent package glibc through the command

Copy code

The code is as follows:

rpm –Uvh http://mirror.centos.org/centos/6/os/x86_64/Packages/glibc-2.12-1.132.el6.x86_64.rpm