domingo, 31 de julio de 2016

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. Dependencies Resolved
    36. ====================================================================================================================================
    37.  Package                      Arch                        Version                                 Repository                   Size
    38. ====================================================================================================================================
    39. Installing:
    40.  ncftp                        i386                        2:3.2.2-1.el5                           epel                        567 k
    41. Transaction Summary
    42. ====================================================================================================================================
    43. Install      1 Package(s)
    44. Update       0 Package(s)
    45. Remove       0 Package(s)
    46. Total download size: 567 k
    47. Is this ok [y/N]: y
    48. Downloading Packages:
    49. ncftp-3.2.2-1.el5.i386.rpm                                                                                   | 567 kB     00:00
    50. warning: rpmts_HdrFromFdno: Header V3 DSA signature: NOKEY, key ID 217521f6
    51. epel/gpgkey                                                                                                  | 1.7 kB     00:00
    52. Importing GPG key 0x217521F6 "Fedora EPEL <epel@fedoraproject.org>" from/etc/pki/rpm-gpg/RPM-GPG-KEY-EPEL
    53. Is this ok [y/N]: y
    54. Running rpm_check_debug
    55. Running Transaction Test
    56. Finished Transaction Test
    57. Transaction Test Succeeded
    58. Running Transaction
    59.   Installing     : ncftp                                                                                                        1/1
    60. Installed:
    61.   ncftp.i386 2:3.2.2-1.el5
    62. 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. Usage:  ncftp [flags] [<host> | <directory URL to browse>]
    3. Flags:
    4.   -u XX  Use username XX instead of anonymous.
    5.   -p XX  Use password XX with the username.
    6.   -P XX  Use port number XX instead of the default FTP service port (21).
    7.   -j XX  Use account XX with the username (rarely needed).
    8.   -F     Dump a sample $HOME/.ncftp/firewall prefs file to stdout and exit.
    9. Program version:  NcFTP 3.2.2/409 Aug 18 200810:48 PM
    10. Library version:  LibNcFTP 3.2.3 (August 182008)
    11. Build system:     Linux xenbuilder2.fedora.redhat.com 2.6.18-107.el5xen #1 ...
    12. This is a freeware program by Mike Gleason (http://www.NcFTP.com).
    13. A directory URL ends in a slash, i.e. ftp://ftp.freebsd.org/pub/FreeBSD/
    14. Use ncftpget and ncftpput for command-line FTP and file URLs.
    http://www.woktron.com/secure/knowledgebase/215/NcFTP-Guide.html

No hay comentarios:

Publicar un comentario