{"id":1506,"date":"2011-12-18T09:07:22","date_gmt":"2011-12-18T01:07:22","guid":{"rendered":"https:\/\/webhostinggeeks.com\/howto\/?p=1506"},"modified":"2023-09-18T15:57:13","modified_gmt":"2023-09-18T15:57:13","slug":"how-to-install-wget-on-linux","status":"publish","type":"post","link":"https:\/\/webhostinggeeks.com\/howto\/how-to-install-wget-on-linux\/","title":{"rendered":"How to Install wget on Linux (Ubuntu, CentOS, RHEL, Fedora)"},"content":{"rendered":"<p>wget is a popular command-line utility for downloading files from the internet. It supports various protocols such as HTTP, HTTPS, and FTP, and is widely used for downloading files, mirroring websites, and automating downloads in scripts.<\/p>\n<p>In this short guide, we will demonstrate how to install wget on different Linux distributions. By following these steps, you will be able to use wget for downloading files on your Linux system.<\/p>\n<h2>Step 1: Install wget on Debian-based Systems (e.g., Ubuntu)<\/h2>\n<p>For Debian-based systems, such as <a href=\"https:\/\/webhostinggeeks.com\/blog\/what-is-ubuntu-beginners-guide-ubuntu-linux-distro\/\">Ubuntu<\/a> and Debian, you can install wget using the apt package manager. First, open a terminal and update the package list by running:<\/p>\n<pre>\r\nsudo apt update\r\n<\/pre>\n<p>Next, install the wget package with the following command:<\/p>\n<pre>\r\nsudo apt install wget\r\n<\/pre>\n<h2>Step 2: Install wget on Red Hat-based Systems (e.g., CentOS, RHEL, Fedora)<\/h2>\n<p>For Red Hat-based systems, such as <a href=\"https:\/\/webhostinggeeks.com\/blog\/what-is-centos-beginners-guide-centos-linux-distro\/\">CentOS<\/a>, RHEL, and Fedora, you can install wget using either the yum or dnf package manager, depending on your distribution.<\/p>\n<p>For CentOS and RHEL, open a terminal and run:<\/p>\n<pre>\r\nsudo yum install wget\r\n<\/pre>\n<p>For Fedora, run:<\/p>\n<pre>\r\nsudo dnf install wget\r\n<\/pre>\n<h2>Step 3: Verify wget Installation<\/h2>\n<p>After installing wget, verify that it is correctly installed by checking its version. Run the following command in the terminal:<\/p>\n<pre>\r\nwget --version\r\n<\/pre>\n<p>If the installation was successful, you will see the version number and other information about the wget installation.<\/p>\n<h3>Commands and Their Functions:<\/h3>\n<ul>\n<li><span class=\"fw-bold\">sudo apt update<\/span> &#8211; Updates the package list on Debian-based systems.<\/li>\n<li><span class=\"fw-bold\">sudo apt install wget<\/span> &#8211; Installs the wget package on Debian-based systems.<\/li>\n<li><span class=\"fw-bold\">sudo yum install wget<\/span> &#8211; Installs the wget package on CentOS and RHEL.<\/li>\n<li><span class=\"fw-bold\">sudo dnf install wget<\/span> &#8211; Installs the wget package on Fedora.<\/li>\n<li><span class=\"fw-bold\">wget &#8211;version<\/span> &#8211; Checks the installed version of wget.<\/li>\n<\/ul>\n<h3>Conclusion<\/h3>\n<p>In this guide, we have demonstrated how to install wget on different Linux distributions, including Debian-based systems (e.g., Ubuntu) and Red Hat-based systems (e.g., CentOS, RHEL, Fedora). With wget installed on your Linux system, you can now use it to download files, mirror websites, and automate downloads in scripts.<\/p>\n<p>Please feel free to leave comments and suggest improvements to this guide. Your feedback is valuable and helps us improve our content for our audience.<\/p>\n","protected":false},"excerpt":{"rendered":"<p>wget is a popular command-line utility for downloading files from the internet. It supports various protocols such as HTTP, HTTPS, and FTP, and is widely used for downloading files, mirroring&#8230;<\/p>\n","protected":false},"author":6,"featured_media":6280,"comment_status":"open","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"wds_primary_category":0,"footnotes":""},"categories":[996],"tags":[1244,1370,1536,1713,1856,1924],"class_list":["post-1506","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-linux","tag-centos","tag-fedora","tag-linux","tag-rhel","tag-ubuntu","tag-wget"],"_links":{"self":[{"href":"https:\/\/webhostinggeeks.com\/howto\/wp-json\/wp\/v2\/posts\/1506","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/webhostinggeeks.com\/howto\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/webhostinggeeks.com\/howto\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/webhostinggeeks.com\/howto\/wp-json\/wp\/v2\/users\/6"}],"replies":[{"embeddable":true,"href":"https:\/\/webhostinggeeks.com\/howto\/wp-json\/wp\/v2\/comments?post=1506"}],"version-history":[{"count":0,"href":"https:\/\/webhostinggeeks.com\/howto\/wp-json\/wp\/v2\/posts\/1506\/revisions"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/webhostinggeeks.com\/howto\/wp-json\/wp\/v2\/media\/6280"}],"wp:attachment":[{"href":"https:\/\/webhostinggeeks.com\/howto\/wp-json\/wp\/v2\/media?parent=1506"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/webhostinggeeks.com\/howto\/wp-json\/wp\/v2\/categories?post=1506"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/webhostinggeeks.com\/howto\/wp-json\/wp\/v2\/tags?post=1506"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}