How to Install wget Command on CentOS/RHEL 7 Servers

How to Install wget Command on CentOS/RHEL 7 Servers

 

Wget command is a Linux command line utility for downloading files from the internet. On CentOS servers, wget command is provided by the wget package.

Do the below steps to install wget command on your CentOS 7 / Redhat 7 Server.

1. Log into your CentOS server via SSH as root user

2. Install wget package on the server using yum

3. Enter ‘y’ if yum ask for confirmation while installing
 

root@server [/]# yum install wget
Resolving Dependencies
–> Running transaction check
—> Package wget.x86_64 0:1.14-18.el7_6.1 will be installed
–> Finished Dependency Resolution

Dependencies Resolved

===================================================================================================
Package Arch Version Repository Size
===================================================================================================
Installing:
wget x86_64 1.14-18.el7_6.1 base 547 k

Transaction Summary
===================================================================================================
Install 1 Package

Total download size: 547 k
Installed size: 2.0 M
Is this ok [y/d/N]: y
Downloading packages:
wget-1.14-18.el7_6.1.x86_64.rpm | 547 kB 00:00:00
Running transaction check
Running transaction test
Transaction test succeeded
Running transaction
Installing : wget-1.14-18.el7_6.1.x86_64 1/1
Verifying : wget-1.14-18.el7_6.1.x86_64 1/1

Installed:
wget.x86_64 0:1.14-18.el7_6.1

Complete!

 
Now wget package is installed on your Linux Server.
 

How to install wget command on CentOS RHEL 7 Server

How to install wget command on CentOS RHEL 7 Server


 
 

How to download and install wget rpm on CentOS 7 / RHEL 7 server


 
1. You must log into your CentOS 7 / RHEL 7 server as root user

2. Download wget rpm from CentOS website

Paste the below url in the browser to download wget package

http://mirror.centos.org/centos/7/os/x86_64/Packages/wget-1.14-18.el7_6.1.x86_64.rpm

3. You can install the downloaded rpm file using yum or rpm command

 

# yum install wget-1.14-18.el7_6.1.x86_64.rpm

 
yum command will wget package and the required dependencies.

 

# rpm -Uvh wget-1.14-18.el7_6.1.x86_64.rpm

 
You must install the dependencies, if you are using rpm command to install wget package.

wget command need the below dependencies :

glibc
openssl-libs
libidn
pcre
libuuid
zlib

The above dependencies will be installed by default on CentOS7 / RHEL7 server.