{"id":20925,"date":"2023-08-31T19:42:05","date_gmt":"2023-08-31T19:42:05","guid":{"rendered":"https:\/\/linuxways.net\/?p=20925"},"modified":"2023-08-31T19:42:05","modified_gmt":"2023-08-31T19:42:05","slug":"how-to-install-wget-on-debian-12","status":"publish","type":"post","link":"https:\/\/linuxways.net\/de\/debian\/how-to-install-wget-on-debian-12\/","title":{"rendered":"How to Install wget on Debian 12?"},"content":{"rendered":"<p>Wget is a command-line utility that allows you to download files from the internet. It supports various protocols, such as HTTP, HTTPS, FTP, and SFTP. Wget can also resume interrupted downloads, follow links, and handle authentication. Wget is pre-installed in most Linux distributions including Debian 12.<\/p>\n<p>This article will describe how to install wget on Debian 12 (Bookworm) distribution.<\/p>\n<h2><a id=\"post-20925-_w2dtl5q1xtvg\"><\/a>How to Install wget on Debian 12?<\/h2>\n<p>The below-listed methods are used to install wget on Debian 12 Systems:<\/p>\n<ul>\n<li>Method 1: Installing wget Using the apt Package Manager<\/li>\n<li>Method 2: Installing wget Using dpkg Package Manager<\/li>\n<\/ul>\n<h2><a id=\"post-20925-_jg4mb9lnv5j0\"><\/a>Method 1: Installing wget Using the apt Package Manager<\/h2>\n<p>The \u201cwget\u201d can be installed using the \u201capt\u201d official package manager by the following steps:<\/p>\n<h3><a id=\"post-20925-_q44isk5oujis\"><\/a>Step 1: Launch Terminal<\/h3>\n<p>The terminal can be launched either by using the shortcut \u201c<strong>Ctrl+Alt+T<\/strong>\u201d or by using the <strong>Application Launcher<\/strong>:<\/p>\n<p><img loading=\"lazy\" decoding=\"async\" width=\"2048\" height=\"439\" class=\"wp-image-20926\" src=\"http:\/\/linuxways.net\/wp-content\/uploads\/2023\/08\/word-image-20925-1.png\" srcset=\"https:\/\/linuxways.net\/wp-content\/uploads\/2023\/08\/word-image-20925-1.png 2048w, https:\/\/linuxways.net\/wp-content\/uploads\/2023\/08\/word-image-20925-1-300x64.png 300w, https:\/\/linuxways.net\/wp-content\/uploads\/2023\/08\/word-image-20925-1-1024x220.png 1024w, https:\/\/linuxways.net\/wp-content\/uploads\/2023\/08\/word-image-20925-1-768x165.png 768w, https:\/\/linuxways.net\/wp-content\/uploads\/2023\/08\/word-image-20925-1-1536x329.png 1536w\" sizes=\"auto, (max-width: 2048px) 100vw, 2048px\" \/><\/p>\n<p>The following screenshot shows how the Terminal looks like on Debian 12:<\/p>\n<p><img loading=\"lazy\" decoding=\"async\" width=\"1576\" height=\"650\" class=\"wp-image-20927\" src=\"http:\/\/linuxways.net\/wp-content\/uploads\/2023\/08\/word-image-20925-2.png\" srcset=\"https:\/\/linuxways.net\/wp-content\/uploads\/2023\/08\/word-image-20925-2.png 1576w, https:\/\/linuxways.net\/wp-content\/uploads\/2023\/08\/word-image-20925-2-300x124.png 300w, https:\/\/linuxways.net\/wp-content\/uploads\/2023\/08\/word-image-20925-2-1024x422.png 1024w, https:\/\/linuxways.net\/wp-content\/uploads\/2023\/08\/word-image-20925-2-768x317.png 768w, https:\/\/linuxways.net\/wp-content\/uploads\/2023\/08\/word-image-20925-2-1536x634.png 1536w\" sizes=\"auto, (max-width: 1576px) 100vw, 1576px\" \/><\/p>\n<h3><a id=\"post-20925-_xj16p9ej4x0v\"><\/a>Step 2: Update System Repositories<\/h3>\n<p>We will update the apt repository before installing any new software with sudo privileges to avoid dependency issues by running the following command:<\/p>\n<p><img loading=\"lazy\" decoding=\"async\" width=\"1704\" height=\"558\" class=\"wp-image-20928\" src=\"http:\/\/linuxways.net\/wp-content\/uploads\/2023\/08\/word-image-20925-3.png\" srcset=\"https:\/\/linuxways.net\/wp-content\/uploads\/2023\/08\/word-image-20925-3.png 1704w, https:\/\/linuxways.net\/wp-content\/uploads\/2023\/08\/word-image-20925-3-300x98.png 300w, https:\/\/linuxways.net\/wp-content\/uploads\/2023\/08\/word-image-20925-3-1024x335.png 1024w, https:\/\/linuxways.net\/wp-content\/uploads\/2023\/08\/word-image-20925-3-768x251.png 768w, https:\/\/linuxways.net\/wp-content\/uploads\/2023\/08\/word-image-20925-3-1536x503.png 1536w\" sizes=\"auto, (max-width: 1704px) 100vw, 1704px\" \/><\/p>\n<h3><a id=\"post-20925-_o51eg25dayjb\"><\/a>Step 3: Install wget<\/h3>\n<p>After updating the apt repositories, we will install wget by running the following command:<\/p>\n<div class=\"codecolorer-container bash blackboard\" style=\"width:100%;\"><div class=\"bash codecolorer\"><span class=\"co4\">$ <\/span><span class=\"kw2\">sudo<\/span> apt <span class=\"kw2\">install<\/span> <span class=\"kw2\">wget<\/span><\/div><\/div>\n<h2><a id=\"post-20925-_ji66a22bbqak\"><\/a><img loading=\"lazy\" decoding=\"async\" width=\"1548\" height=\"654\" class=\"wp-image-20929\" src=\"http:\/\/linuxways.net\/wp-content\/uploads\/2023\/08\/word-image-20925-4.png\" srcset=\"https:\/\/linuxways.net\/wp-content\/uploads\/2023\/08\/word-image-20925-4.png 1548w, https:\/\/linuxways.net\/wp-content\/uploads\/2023\/08\/word-image-20925-4-300x127.png 300w, https:\/\/linuxways.net\/wp-content\/uploads\/2023\/08\/word-image-20925-4-1024x433.png 1024w, https:\/\/linuxways.net\/wp-content\/uploads\/2023\/08\/word-image-20925-4-768x324.png 768w, https:\/\/linuxways.net\/wp-content\/uploads\/2023\/08\/word-image-20925-4-1536x649.png 1536w\" sizes=\"auto, (max-width: 1548px) 100vw, 1548px\" \/><\/h2>\n<p><img loading=\"lazy\" decoding=\"async\" width=\"1552\" height=\"446\" class=\"wp-image-20930\" src=\"http:\/\/linuxways.net\/wp-content\/uploads\/2023\/08\/word-image-20925-5.png\" srcset=\"https:\/\/linuxways.net\/wp-content\/uploads\/2023\/08\/word-image-20925-5.png 1552w, https:\/\/linuxways.net\/wp-content\/uploads\/2023\/08\/word-image-20925-5-300x86.png 300w, https:\/\/linuxways.net\/wp-content\/uploads\/2023\/08\/word-image-20925-5-1024x294.png 1024w, https:\/\/linuxways.net\/wp-content\/uploads\/2023\/08\/word-image-20925-5-768x221.png 768w, https:\/\/linuxways.net\/wp-content\/uploads\/2023\/08\/word-image-20925-5-1536x441.png 1536w\" sizes=\"auto, (max-width: 1552px) 100vw, 1552px\" \/><\/p>\n<h3><a id=\"post-20925-_yhalak6s2ezr\"><\/a>Step 3: Verify Installation<\/h3>\n<p>We can verify the wget installation by checking the version by running the following command:<\/p>\n<div class=\"codecolorer-container bash blackboard\" style=\"width:100%;\"><div class=\"bash codecolorer\"><span class=\"co4\">$ <\/span><span class=\"kw2\">wget<\/span> <span class=\"re5\">--version<\/span><\/div><\/div>\n<p><img loading=\"lazy\" decoding=\"async\" width=\"1538\" height=\"490\" class=\"wp-image-20932\" src=\"http:\/\/linuxways.net\/wp-content\/uploads\/2023\/08\/word-image-20925-6.png\" srcset=\"https:\/\/linuxways.net\/wp-content\/uploads\/2023\/08\/word-image-20925-6.png 1538w, https:\/\/linuxways.net\/wp-content\/uploads\/2023\/08\/word-image-20925-6-300x96.png 300w, https:\/\/linuxways.net\/wp-content\/uploads\/2023\/08\/word-image-20925-6-1024x326.png 1024w, https:\/\/linuxways.net\/wp-content\/uploads\/2023\/08\/word-image-20925-6-768x245.png 768w, https:\/\/linuxways.net\/wp-content\/uploads\/2023\/08\/word-image-20925-6-1536x489.png 1536w\" sizes=\"auto, (max-width: 1538px) 100vw, 1538px\" \/><\/p>\n<h2><a id=\"post-20925-_26wjnqi4e6pp\"><\/a>Method 2: Installing wget Using dpkg Package Manager<\/h2>\n<p>The \u201cwget\u201d can be installed using dpkg package manager by running the following steps:<\/p>\n<h3><a id=\"post-20925-_yub8uxg5toe2\"><\/a>Step 1: Download .deb file<\/h3>\n<p>We can download the Debian file from the official <a href=\"http:\/\/archive.ubuntu.com\/ubuntu\/pool\/main\/w\/wget\/\">website<\/a> by selecting the file &#8220;wget_1.21.3-1ubuntu1_amd64.deb\u201d as below:<\/p>\n<p><img loading=\"lazy\" decoding=\"async\" width=\"1450\" height=\"710\" class=\"wp-image-20933\" src=\"http:\/\/linuxways.net\/wp-content\/uploads\/2023\/08\/word-image-20925-7.png\" srcset=\"https:\/\/linuxways.net\/wp-content\/uploads\/2023\/08\/word-image-20925-7.png 1450w, https:\/\/linuxways.net\/wp-content\/uploads\/2023\/08\/word-image-20925-7-300x147.png 300w, https:\/\/linuxways.net\/wp-content\/uploads\/2023\/08\/word-image-20925-7-1024x501.png 1024w, https:\/\/linuxways.net\/wp-content\/uploads\/2023\/08\/word-image-20925-7-768x376.png 768w\" sizes=\"auto, (max-width: 1450px) 100vw, 1450px\" \/><\/p>\n<p>This will start the download process and the .deb file will be downloaded in the Downloads folder by default:<\/p>\n<p><img loading=\"lazy\" decoding=\"async\" width=\"2048\" height=\"359\" class=\"wp-image-20934\" src=\"http:\/\/linuxways.net\/wp-content\/uploads\/2023\/08\/word-image-20925-8.png\" srcset=\"https:\/\/linuxways.net\/wp-content\/uploads\/2023\/08\/word-image-20925-8.png 2048w, https:\/\/linuxways.net\/wp-content\/uploads\/2023\/08\/word-image-20925-8-300x53.png 300w, https:\/\/linuxways.net\/wp-content\/uploads\/2023\/08\/word-image-20925-8-1024x180.png 1024w, https:\/\/linuxways.net\/wp-content\/uploads\/2023\/08\/word-image-20925-8-768x135.png 768w, https:\/\/linuxways.net\/wp-content\/uploads\/2023\/08\/word-image-20925-8-1536x269.png 1536w\" sizes=\"auto, (max-width: 2048px) 100vw, 2048px\" \/><\/p>\n<h2><\/h2>\n<p>We will launch the terminal (as shown in Step 1 of Method 1) and we will navigate to the .deb file using the \u201c<strong>cd<\/strong>\u201d command as shown below:<\/p>\n<div class=\"codecolorer-container bash blackboard\" style=\"width:100%;\"><div class=\"bash codecolorer\"><span class=\"co4\">$ <\/span><span class=\"kw3\">cd<\/span> Downloads<\/div><\/div>\n<p><img loading=\"lazy\" decoding=\"async\" width=\"1444\" height=\"216\" class=\"wp-image-20935\" src=\"http:\/\/linuxways.net\/wp-content\/uploads\/2023\/08\/word-image-20925-9.png\" srcset=\"https:\/\/linuxways.net\/wp-content\/uploads\/2023\/08\/word-image-20925-9.png 1444w, https:\/\/linuxways.net\/wp-content\/uploads\/2023\/08\/word-image-20925-9-300x45.png 300w, https:\/\/linuxways.net\/wp-content\/uploads\/2023\/08\/word-image-20925-9-1024x153.png 1024w, https:\/\/linuxways.net\/wp-content\/uploads\/2023\/08\/word-image-20925-9-768x115.png 768w\" sizes=\"auto, (max-width: 1444px) 100vw, 1444px\" \/><\/p>\n<h3><a id=\"post-20925-_gl7sjzzg9x6i\"><\/a>Step 2: Install wget<\/h3>\n<p>We can install wget by running the following command:<\/p>\n<div class=\"codecolorer-container bash blackboard\" style=\"width:100%;\"><div class=\"bash codecolorer\"><span class=\"co4\">$ <\/span><span class=\"kw2\">sudo<\/span> <span class=\"kw2\">dpkg<\/span> <span class=\"re5\">-i<\/span> wget_1.21.3-1ubuntu1_amd64.deb<\/div><\/div>\n<p><img loading=\"lazy\" decoding=\"async\" width=\"1700\" height=\"454\" class=\"wp-image-20936\" src=\"http:\/\/linuxways.net\/wp-content\/uploads\/2023\/08\/word-image-20925-10.png\" srcset=\"https:\/\/linuxways.net\/wp-content\/uploads\/2023\/08\/word-image-20925-10.png 1700w, https:\/\/linuxways.net\/wp-content\/uploads\/2023\/08\/word-image-20925-10-300x80.png 300w, https:\/\/linuxways.net\/wp-content\/uploads\/2023\/08\/word-image-20925-10-1024x273.png 1024w, https:\/\/linuxways.net\/wp-content\/uploads\/2023\/08\/word-image-20925-10-768x205.png 768w, https:\/\/linuxways.net\/wp-content\/uploads\/2023\/08\/word-image-20925-10-1536x410.png 1536w\" sizes=\"auto, (max-width: 1700px) 100vw, 1700px\" \/><\/p>\n<p>This will conclude the installation.<\/p>\n<h3><a id=\"post-20925-_px3m12mz4l5y\"><\/a>Step 3: Verifying installation<\/h3>\n<p>We can verify the installation by checking the version of the wget as shown below:<\/p>\n<div class=\"codecolorer-container bash blackboard\" style=\"width:100%;\"><div class=\"bash codecolorer\"><span class=\"co4\">$ <\/span><span class=\"kw2\">wget<\/span> <span class=\"re5\">--version<\/span><\/div><\/div>\n<p><img loading=\"lazy\" decoding=\"async\" width=\"1538\" height=\"490\" class=\"wp-image-20937\" src=\"http:\/\/linuxways.net\/wp-content\/uploads\/2023\/08\/word-image-20925-11.png\" srcset=\"https:\/\/linuxways.net\/wp-content\/uploads\/2023\/08\/word-image-20925-11.png 1538w, https:\/\/linuxways.net\/wp-content\/uploads\/2023\/08\/word-image-20925-11-300x96.png 300w, https:\/\/linuxways.net\/wp-content\/uploads\/2023\/08\/word-image-20925-11-1024x326.png 1024w, https:\/\/linuxways.net\/wp-content\/uploads\/2023\/08\/word-image-20925-11-768x245.png 768w, https:\/\/linuxways.net\/wp-content\/uploads\/2023\/08\/word-image-20925-11-1536x489.png 1536w\" sizes=\"auto, (max-width: 1538px) 100vw, 1538px\" \/><\/p>\n<h2><a id=\"post-20925-_1etn4wh55d6\"><\/a>How to Uninstall wget on Debian 12?<\/h2>\n<p>If in case, we need to uninstall wget from our system, we will run the following command:<\/p>\n<div class=\"codecolorer-container bash blackboard\" style=\"width:100%;\"><div class=\"bash codecolorer\"><span class=\"co4\">$ <\/span><span class=\"kw2\">sudo<\/span> apt remove <span class=\"kw2\">wget<\/span><\/div><\/div>\n<p><img loading=\"lazy\" decoding=\"async\" width=\"1518\" height=\"500\" class=\"wp-image-20938\" src=\"http:\/\/linuxways.net\/wp-content\/uploads\/2023\/08\/word-image-20925-12.png\" srcset=\"https:\/\/linuxways.net\/wp-content\/uploads\/2023\/08\/word-image-20925-12.png 1518w, https:\/\/linuxways.net\/wp-content\/uploads\/2023\/08\/word-image-20925-12-300x99.png 300w, https:\/\/linuxways.net\/wp-content\/uploads\/2023\/08\/word-image-20925-12-1024x337.png 1024w, https:\/\/linuxways.net\/wp-content\/uploads\/2023\/08\/word-image-20925-12-768x253.png 768w\" sizes=\"auto, (max-width: 1518px) 100vw, 1518px\" \/><\/p>\n<p>Press Y at the prompt to continue with the uninstallation process.<\/p>\n<p><img loading=\"lazy\" decoding=\"async\" width=\"1544\" height=\"348\" class=\"wp-image-20939\" src=\"http:\/\/linuxways.net\/wp-content\/uploads\/2023\/08\/word-image-20925-13.png\" srcset=\"https:\/\/linuxways.net\/wp-content\/uploads\/2023\/08\/word-image-20925-13.png 1544w, https:\/\/linuxways.net\/wp-content\/uploads\/2023\/08\/word-image-20925-13-300x68.png 300w, https:\/\/linuxways.net\/wp-content\/uploads\/2023\/08\/word-image-20925-13-1024x231.png 1024w, https:\/\/linuxways.net\/wp-content\/uploads\/2023\/08\/word-image-20925-13-768x173.png 768w, https:\/\/linuxways.net\/wp-content\/uploads\/2023\/08\/word-image-20925-13-1536x346.png 1536w\" sizes=\"auto, (max-width: 1544px) 100vw, 1544px\" \/><\/p>\n<p>It can be observed that the uninstallation is successful.<\/p>\n<p>Further, we can verify if the uninstallation is done successfully, by checking the version:<\/p>\n<p><img loading=\"lazy\" decoding=\"async\" width=\"1496\" height=\"154\" class=\"wp-image-20940\" src=\"http:\/\/linuxways.net\/wp-content\/uploads\/2023\/08\/word-image-20925-14.png\" srcset=\"https:\/\/linuxways.net\/wp-content\/uploads\/2023\/08\/word-image-20925-14.png 1496w, https:\/\/linuxways.net\/wp-content\/uploads\/2023\/08\/word-image-20925-14-300x31.png 300w, https:\/\/linuxways.net\/wp-content\/uploads\/2023\/08\/word-image-20925-14-1024x105.png 1024w, https:\/\/linuxways.net\/wp-content\/uploads\/2023\/08\/word-image-20925-14-768x79.png 768w\" sizes=\"auto, (max-width: 1496px) 100vw, 1496px\" \/><\/p>\n<p>As we cannot see the version information by running the version command, this signifies that we have successfully uninstalled wget.<\/p>\n<h2><a id=\"post-20925-_k4r3ojha6hv3\"><\/a>Conclusion<\/h2>\n<p>To install wget on Debian 12, you need to follow these steps: update your system with \u201csudo apt update\u201d. Install wget with the \u201csudo apt install wget\u201d command. Finally, verify the installation with the \u201cwget &#8211;version\u201d command. This article has discussed in detail how to install wget on Debian 12 (Bookworm) systems using the official \u201capt\u201d and dpkg package manager.<\/p>","protected":false},"excerpt":{"rendered":"<p>To install wget on Debian 12, use the official \u201capt\u201d package manager and dpkg package manager. Verify the installation via the \u201cwget &#8211;version\u201d command.<\/p>","protected":false},"author":110,"featured_media":20931,"comment_status":"closed","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[4],"tags":[],"class_list":["post-20925","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-debian"],"_links":{"self":[{"href":"https:\/\/linuxways.net\/de\/wp-json\/wp\/v2\/posts\/20925","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/linuxways.net\/de\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/linuxways.net\/de\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/linuxways.net\/de\/wp-json\/wp\/v2\/users\/110"}],"replies":[{"embeddable":true,"href":"https:\/\/linuxways.net\/de\/wp-json\/wp\/v2\/comments?post=20925"}],"version-history":[{"count":0,"href":"https:\/\/linuxways.net\/de\/wp-json\/wp\/v2\/posts\/20925\/revisions"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/linuxways.net\/de\/wp-json\/wp\/v2\/media\/20931"}],"wp:attachment":[{"href":"https:\/\/linuxways.net\/de\/wp-json\/wp\/v2\/media?parent=20925"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/linuxways.net\/de\/wp-json\/wp\/v2\/categories?post=20925"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/linuxways.net\/de\/wp-json\/wp\/v2\/tags?post=20925"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}