How to Install telnet on CentOS

Share this Article :

Question : When i try to perform the troubleshooting using telnet command, the following error appeared. How to fix this ?

[[email protected] ~]# telnet localhost 25
-bash: telnet: command not found

Answer : Simply install telnet using this command :

[[email protected] ~]# yum install telnet
Loaded plugins: fastestmirror
Loading mirror speeds from cached hostfile
 * base: centos.ipserverone.com
 * epel: ftp.cuhk.edu.hk
 * extras: centos.ipserverone.com
 * rpmforge: ftp-stud.fht-esslingen.de
 * updates: centos.ipserverone.com
Setting up Install Process
Resolving Dependencies
--> Running transaction check
---> Package telnet.i686 1:0.17-47.el6 will be installed
--> Finished Dependency Resolution

Dependencies Resolved

==========================================================================================
 Package         Arch          Version                Repository                     Size
==========================================================================================
Installing:
 telnet          i686          1:0.17-47.el6          CentOS6.2-Repository           56 k

Transaction Summary
==========================================================================================
Install       1 Package(s)

Total download size: 56 k
Installed size: 102 k
Is this ok [y/N]: y
Downloading Packages:
Running rpm_check_debug
Running Transaction Test
Transaction Test Succeeded
Running Transaction
  Installing : 1:telnet-0.17-47.el6.i686                                              1/1

Installed:
  telnet.i686 1:0.17-47.el6

Complete!


Leave a Reply