CentOS is a popular open-source operating system that is widely used for web servers, network services, and databases. One of the advantages of CentOS is its package manager called YUM, which allows easy installation and management of software packages. However, some packages are not installed by default, such as wget, telnet, and man utility.
[root@centos64 ~]# wget -bash: wget: command not found
[root@centos64 ~]# man -bash: man: command not found
[root@centos64 ~]# telnet -bash: telnet: command not found
These utilities are essential for managing and troubleshooting network-related issues. In this guide, we will explain how to install these utilities on CentOS 6.4 using the YUM package manager.
Step 1: Check if the utilities are already installed:
Before we proceed with the installation, let’s check if the utilities are already installed on your system. To check if the wget utility is installed, run the following command:
If the output shows the location of the wget binary, then it is already installed on your system. Similarly, you can check the telnet and man utility using the following commands:
which telnet which man
If the utilities are not installed, move to the next step.
Step 2: Install wget:
To install the wget utility, run the following command:
sudo yum install wget
The YUM package manager will download and install the wget utility along with its dependencies.
Step 3: Install telnet:
To install the telnet utility, run the following command:
sudo yum install telnet
The YUM package manager will download and install the telnet utility along with its dependencies.
Step 4: Install man utility:
The man utility provides help and documentation for other commands installed on your system. To install the man utility, run the following command:
sudo yum install man
The YUM package manager will download and install the man utility along with its dependencies.
[root@centos64 ~]# yum install wget man telnet -y
[root@centos64 ~]# yum install wget man telnet -y Loaded plugins: fastestmirror Determining fastest mirrors * base: mirrors.hostemo.com * extras: mirrors.hostemo.com * updates: mirrors.hostemo.com base | 3.7 kB 00:00 extras | 3.5 kB 00:00 updates | 3.5 kB 00:04 Setting up Install Process Resolving Dependencies --> Running transaction check ---> Package man.x86_64 0:1.6f-32.el6 will be installed --> Processing Dependency: lzma for package: man-1.6f-32.el6.x86_64 ---> Package telnet.x86_64 1:0.17-47.el6_3.1 will be installed ---> Package wget.x86_64 0:1.12-1.8.el6 will be installed --> Running transaction check ---> Package xz-lzma-compat.x86_64 0:4.999.9-0.3.beta.20091007git.el6 will be installed --> Processing Dependency: xz = 4.999.9-0.3.beta.20091007git.el6 for package: xz-lzma-compat-4.999.9-0.3.beta.20091007git.el6.x86_64 --> Running transaction check ---> Package xz.x86_64 0:4.999.9-0.3.beta.20091007git.el6 will be installed --> Finished Dependency Resolution Dependencies Resolved ==================================================================================================== Package Arch Version Repository Size ==================================================================================================== Installing: man x86_64 1.6f-32.el6 base 263 k telnet x86_64 1:0.17-47.el6_3.1 base 58 k wget x86_64 1.12-1.8.el6 base 482 k Installing for dependencies: xz x86_64 4.999.9-0.3.beta.20091007git.el6 base 137 k xz-lzma-compat x86_64 4.999.9-0.3.beta.20091007git.el6 base 16 k Transaction Summary ==================================================================================================== Install 5 Package(s) Total download size: 955 k Installed size: 2.8 M Downloading Packages: (1/5): man-1.6f-32.el6.x86_64.rpm | 263 kB 00:05 (2/5): telnet-0.17-47.el6_3.1.x86_64.rpm | 58 kB 00:00 (3/5): wget-1.12-1.8.el6.x86_64.rpm | 482 kB 00:09 (4/5): xz-4.999.9-0.3.beta.20091007git.el6.x86_64.rpm | 137 kB 00:04 (5/5): xz-lzma-compat-4.999.9-0.3.beta.20091007git.el6.x86_64.rpm | 16 kB 00:00 ---------------------------------------------------------------------------------------------------- Total 42 kB/s | 955 kB 00:22 Running rpm_check_debug Running Transaction Test Transaction Test Succeeded Running Transaction Installing : xz-4.999.9-0.3.beta.20091007git.el6.x86_64 1/5 Installing : xz-lzma-compat-4.999.9-0.3.beta.20091007git.el6.x86_64 2/5 Installing : man-1.6f-32.el6.x86_64 3/5 Installing : 1:telnet-0.17-47.el6_3.1.x86_64 4/5 Installing : wget-1.12-1.8.el6.x86_64 5/5 Verifying : xz-lzma-compat-4.999.9-0.3.beta.20091007git.el6.x86_64 1/5 Verifying : man-1.6f-32.el6.x86_64 2/5 Verifying : xz-4.999.9-0.3.beta.20091007git.el6.x86_64 3/5 Verifying : wget-1.12-1.8.el6.x86_64 4/5 Verifying : 1:telnet-0.17-47.el6_3.1.x86_64 5/5 Installed: man.x86_64 0:1.6f-32.el6 telnet.x86_64 1:0.17-47.el6_3.1 wget.x86_64 0:1.12-1.8.el6 Dependency Installed: xz.x86_64 0:4.999.9-0.3.beta.20091007git.el6 xz-lzma-compat.x86_64 0:4.999.9-0.3.beta.20091007git.el6 Complete!
- which – locate a command by searching for it in PATH
- sudo – execute a command as a superuser or another user
- yum – a package manager that installs, removes, and updates packages on CentOS
- install – a command used to install new software packages
In this guide, we have explained how to install wget, telnet, and man utility on CentOS 6.4 using the YUM package manager. These utilities are essential for managing and troubleshooting network-related issues. By following the steps outlined in this guide, you should now have these utilities installed on your system.
If you have any comments or suggestions for improvement, please leave them below.