telnet: command not found. Install Telnet on CentOS 7
telnet: command not found. Install Telnet on CentOS 7 / RHEL 7 server
Follow the below steps to install telnet command on CentOS 7 / RHEL 7 server.
ERROR:
-bash: telnet: command not found
FIX:
root@server [~]# telnet gmail.com 25
-bash: telnet: command not found
Telnet command is used by network and system admins to access and manage a remote host or device.
On CentOS and Redhat servers, telnet command is provided by telnet package.
1. To install telnet package you must log into your Linux server as ‘root’ user
2. Check whether telnet package rpm is installed or not.
Command to check whether telnet package is installed or not : # rpm -qa | grep telnet
root@server [~]#
Telnet package is not installed on the above server.
3. You can install Telnet package using yum command
Command to install telnet command on Linux Server (CentOS and Redhat) : # yum install telnet
Yum might ask whether you want to proceed with the installation, enter ‘y’ and hit ‘enter’ key to proceed with telnet package installation.
Loaded plugins: fastestmirror, ovl
Loading mirror speeds from cached hostfile
Resolving Dependencies
–> Running transaction check
—> Package telnet.x86_64 1:0.17-65.el7_8 will be installed
–> Finished Dependency Resolution
Dependencies Resolved
=============================================================================================================================================================================================================
Package Arch Version Repository Size
=============================================================================================================================================================================================================
Installing:
telnet x86_64 1:0.17-65.el7_8 updates 64 k
Transaction Summary
=============================================================================================================================================================================================================
Install 1 Package
Total download size: 64 k
Installed size: 113 k
Is this ok [y/d/N]: y
Downloading packages:
telnet-0.17-65.el7_8.x86_64.rpm | 64 kB 00:00:01
Running transaction check
Running transaction test
Transaction test succeeded
Running transaction
Installing : 1:telnet-0.17-65.el7_8.x86_64 1/1
Verifying : 1:telnet-0.17-65.el7_8.x86_64 1/1
Installed:
telnet.x86_64 1:0.17-65.el7_8
Complete!
How to Download and install telnet rpm
1. You must log into your redhat 7 / centos 7 server as ‘root’ user
2. Download telnet package from CentOS website using wget command
# wget http://mirror.centos.org/centos/7/os/x86_64/Packages/telnet-0.17-64.el7.x86_64.rpm
3. You can install telnet package by either using yum or rpm command
# yum install telnet-0.17-64.el7.x86_64.rpm
Yum will install telnet and the required dependencies for telnet package.
#rpm -ivh telnet-0.17-64.el7.x86_64.rpm
First you must download and install the dependencies if you are installing telnet using rpm command.
The below dependencies are required:
libc.so.6()(64bit)
libc.so.6(GLIBC_2.11)(64bit)
libc.so.6(GLIBC_2.15)(64bit)
libc.so.6(GLIBC_2.2.5)(64bit)
libc.so.6(GLIBC_2.3)(64bit)
libc.so.6(GLIBC_2.3.4)(64bit)
libc.so.6(GLIBC_2.4)(64bit)
libc.so.6(GLIBC_2.8)(64bit)
libncurses.so.5()(64bit)
libtinfo.so.5()(64bit)
libutil.so.1()(64bit)
No need to install the above dependencies if it is already installed on your server.