Wednesday 2 October 2019

How to resolve wget: command not found in CentOS 8



wget command: It is a command-line utility and used to downloads files over a network. wget is a free utility to download files and available most of the Linux distributions.

[root@linuxcnf ~]# wget https://www.linuxcnf.com/
-bash: wget: command not found
[root@linuxcnf ~]#

It means wget package is not installed on the system. So install the package.

This article describes how to resolve wget: command not fount issue by installing wget package in CentOS 8.

Step 1. Installing package: Run the following command to install wget binary/packages:

[root@linuxcnf ~]# dnf install wget -y
……………………
Running transaction
  Preparing        :                                                                           1/1
  Installing       : wget-1.19.5-7.el8_0.1.x86_64                                          1/1
  Running scriptlet: wget-1.19.5-7.el8_0.1.x86_64                                       1/1
  Verifying        : wget-1.19.5-7.el8_0.1.x86_64                                         1/1

Installed:
  wget-1.19.5-7.el8_0.1.x86_64

Complete!
[root@linuxcnf ~]#

Step 2. Verification: Run the same command again or run the following command to verify the installation.

[root@linuxcnf ~]# which wget
/usr/bin/wget
[root@linuxcnf ~]#

Done!!! Now the command is available on the system and able to download file using wget command.

No comments:

Post a Comment