Install ncftp, ncftpget, ncftpput Using Yum On CentOS Linux Server

I was messing around with the CPAN the Perl world wide archive of resources earlier today and it was asking for the default location of ncftpget. By default this is no longer installed on CentOS so you will first need to install the EPEL repository and then install NCFTP using yum. Follow the directions below to install ncftp which includes ncftpput, ncftpget, ncftpbatch, ncftpspooler, and more.

Install NCFTP Using Yum On A CentOS Linux Server:

  1. Install EPEL Repository: If you do not already have the EPEL repo installed then issue the below command from a terminal window or shell.
    bash

    1. rpm -Uvh http://download.fedora.redhat.com/pub/epel/5/i386/epel-release-5-4.noarch.rpm

    This command may change a bit depending on the version of CentOS you have installed or the version of the EPEL that is available.

    **NOTE** The EPEL repository version may have been updated since this article was written so if 5.4 does not work then attempt to install 5.5, 5.6, etc. Thanks to L. Ramsey below for pointing out that the latest driver version as of 9/12/2010 was 5.4.

  2. Install NCFTP Via Yum: Now install NCFTP using the yum package manager. If this is your first time installing something using the EPEL you will be prompted to import the EPEL GPG key as seen in the below example. The includes the entire output of installing ncftp using yum from a shell.
    bash

    1. [root@server ~]# yum list *NCFTP*
    2. Loaded plugins: fastestmirror
    3. Loading mirror speeds from cached hostfile
    4.  * addons: mirror.fdcservers.net
    5.  * base: mirrors.tummy.com
    6.  * centosplus: mirrors.serveraxis.net
    7.  * epel: mirrors.tummy.com
    8.  * extras: centos-distro.cavecreek.net
    9.  * rpmforge: apt.sw.be
    10.  * updates: mirror.ubiquityservers.com
    11. addons                                                                                                       |  951 B     00:00
    12. base                                                                                                         | 2.1 kB     00:00
    13. centosplus                                                                                                   |  951 B     00:00
    14. epel                                                                                                         | 3.4 kB     00:00
    15. epel/primary_db                                                                                              | 2.3 MB     00:02
    16. extras                                                                                                       | 1.1 kB     00:00
    17. updates                                                                                                      | 1.9 kB     00:00
    18. Available Packages
    19. ncftp.i386                                                    2:3.2.2-1.el5                                                     epel
    20. [root@corp2 ~]# yum install ncftp
    21. Loaded plugins: fastestmirror
    22. Loading mirror speeds from cached hostfile
    23.  * addons: mirror.fdcservers.net
    24.  * base: mirrors.tummy.com
    25.  * centosplus: mirrors.serveraxis.net
    26.  * epel: mirrors.tummy.com
    27.  * extras: centos-distro.cavecreek.net
    28.  * rpmforge: apt.sw.be
    29.  * updates: mirror.ubiquityservers.com
    30. Setting up Install Process
    31. Resolving Dependencies
    32. --> Running transaction check
    33. ---> Package ncftp.i386 2:3.2.2-1.el5 set to be updated
    34. --> Finished Dependency Resolution
    35.  
    36. Dependencies Resolved
    37.  
    38. ====================================================================================================================================
    39.  Package                      Arch                        Version                                 Repository                   Size
    40. ====================================================================================================================================
    41. Installing:
    42.  ncftp                        i386                        2:3.2.2-1.el5                           epel                        567 k
    43.  
    44. Transaction Summary
    45. ====================================================================================================================================
    46. Install      1 Package(s)
    47. Update       0 Package(s)
    48. Remove       0 Package(s)
    49.  
    50. Total download size: 567 k
    51. Is this ok [y/N]: y
    52. Downloading Packages:
    53. ncftp-3.2.2-1.el5.i386.rpm                                                                                   | 567 kB     00:00
    54. warning: rpmts_HdrFromFdno: Header V3 DSA signature: NOKEY, key ID 217521f6
    55. epel/gpgkey                                                                                                  | 1.7 kB     00:00
    56. Importing GPG key 0x217521F6 "Fedora EPEL <epel@fedoraproject.org>" from /etc/pki/rpm-gpg/RPM-GPG-KEY-EPEL
    57. Is this ok [y/N]: y
    58. Running rpm_check_debug
    59. Running Transaction Test
    60. Finished Transaction Test
    61. Transaction Test Succeeded
    62. Running Transaction
    63.   Installing     : ncftp                                                                                                        1/1
    64.  
    65. Installed:
    66.   ncftp.i386 2:3.2.2-1.el5
    67.  
    68. Complete!
  3. Verify NCFTP Install: Now from a shell window verify ncftp has been installed by issuing the “ncftp -h” command as shown in the below example.
    bash

    1. [root@server ~]# ncftp -h
    2.  
    3. Usage:  ncftp [flags] [<host> | <directory URL to browse>]
    4.  
    5. Flags:
    6.   -u XX  Use username XX instead of anonymous.
    7.   -p XX  Use password XX with the username.
    8.   -P XX  Use port number XX instead of the default FTP service port (21).
    9.   -j XX  Use account XX with the username (rarely needed).
    10.   -F     Dump a sample $HOME/.ncftp/firewall prefs file to stdout and exit.
    11.  
    12. Program version:  NcFTP 3.2.2/409 Aug 18 2008, 10:48 PM
    13. Library version:  LibNcFTP 3.2.3 (August 18, 2008)
    14. Build system:     Linux xenbuilder2.fedora.redhat.com 2.6.18-107.el5xen #1 ...
    15.  
    16. This is a freeware program by Mike Gleason (http://www.NcFTP.com).
    17. A directory URL ends in a slash, i.e. ftp://ftp.freebsd.org/pub/FreeBSD/
    18. Use ncftpget and ncftpput for command-line FTP and file URLs.

Now you can use ncftp, ncftpput, and ncftpget on your CentOS Linux server. If you have any further questions comment below and someone will respond.

Introduction to the Command Line: A Beginner’s Guide to Unix and Linux Commands (Paperback)


List Price: Click For Price
New From: 0 Out of Stock
Used from: $29.95 USD In Stock

Introduction To Linux: A Hands On Guide For Beginners – Edition 2008 (Paperback)


List Price: Click For Price
New From: 0 Out of Stock
Used from: $5.95 USD In Stock

Share