How to Install wget on CentOS 6.2

Wget is a command-line utility that allows you to download files from the web. It is often used in scripts to automate file downloads. If you’re using CentOS 6.2 and wget is not installed on your system, you’ll need to install it before you can use it.

[root@centos6 ~]# wget
bash: wget: command not found

In this guide, we’ll show you how to install wget on CentOS 6.2.

Step 1: Update Your System

Before you begin, it’s a good idea to update your system to ensure that you have the latest packages installed. Run the following command to update your system:

yum update

This command will update all the packages on your system.

Step 2: Install Wget

Now that your system is up to date, you can install wget by running the following command:

yum install wget

This command will download and install wget and its dependencies.

[root@centos6 ~]# yum install wget
Loaded plugins: fastestmirror
Loading mirror speeds from cached hostfile
 * base:
 * extras:
 * updates:
base                                                                     | 3.7 kB     00:00
extras                                                                   | 3.5 kB     00:00
updates                                                                  | 3.5 kB     00:00
Setting up Install Process
Resolving Dependencies
--> Running transaction check
---> Package wget.i686 0:1.12-1.4.el6 will be installed
--> Finished Dependency Resolution

Dependencies Resolved

 Package             Arch                Version                      Repository           Size
 wget                i686                1.12-1.4.el6                 base                481 k

Transaction Summary
Install       1 Package(s)

Total download size: 481 k
Installed size: 1.8 M
Is this ok [y/N]: y
Downloading Packages:
wget-1.12-1.4.el6.i686.rpm                                               | 481 kB     00:04
warning: rpmts_HdrFromFdno: Header V3 RSA/SHA256 Signature, key ID c105b9de: NOKEY
Retrieving key from file:///etc/pki/rpm-gpg/RPM-GPG-KEY-CentOS-6
Importing GPG key 0xC105B9DE:
 Userid : CentOS-6 Key (CentOS 6 Official Signing Key) 
 Package: centos-release-6-2.el6.centos.7.i686 (@anaconda-CentOS-201112130233.i386/6.2)
 From   : /etc/pki/rpm-gpg/RPM-GPG-KEY-CentOS-6
Is this ok [y/N]: y
Running rpm_check_debug
Running Transaction Test
Transaction Test Succeeded
Running Transaction
Warning: RPMDB altered outside of yum.
  Installing : wget-1.12-1.4.el6.i686                                                       1/1

  wget.i686 0:1.12-1.4.el6


Step 3: Verify the Installation

Once the installation is complete, you can verify that wget is installed by running the following command:

wget --version

This command will display the version of wget installed on your system.

Step 4: Using Wget

Now that wget is installed, you can use it to download files from the web. To download a file, simply run the following command:

wget [URL]

Replace [URL] with the URL of the file you want to download.

For example, to download a file called from, you would run the following command:


The file will be downloaded to the current directory.

Commands Mentioned:

  • yum update – Update your system
  • yum install wget – Install wget
  • wget –version – Verify the installation
  • wget [URL] – Use wget to download files


In this guide, we’ve shown you how to install wget on CentOS 6.2. Wget is a useful utility for downloading files from the web, and it’s often used in scripts to automate file downloads. By following the steps in this guide, you should now have wget installed on your system and be able to use it to download files. If you have any comments or suggestions for improvements, please feel free to share them below.


Leave a Reply

Your email address will not be published. Required fields are marked *