How to install wget command on Ubuntu 21.04
Wget command is used on Linux servers to download packages from the internet. Follow the below steps to install wget package on Ubuntu 21.04.
Step 1. Log into Ubuntu server as sudo or root user
Step 2. Run ‘apt update’ to download package information
Step 3. Run the command ‘apt install wget’ to install wget package
Step 4. Enter y and press enter, if apt ask for confirmation while installing
Step 5. Verify the installation by checking wget version
root
root@ubuntu21:/# apt update
Get:1 http://archive.ubuntu.com/ubuntu hirsute InRelease [269 kB]
Get:2 http://security.ubuntu.com/ubuntu hirsute-security InRelease [90.7 kB]
Get:3 http://archive.ubuntu.com/ubuntu hirsute-updates InRelease [90.7 kB]
Get:4 http://archive.ubuntu.com/ubuntu hirsute-backports InRelease [90.7 kB]
Get:5 http://archive.ubuntu.com/ubuntu hirsute/restricted amd64 Packages [95.0 kB]
Get:6 http://archive.ubuntu.com/ubuntu hirsute/multiverse amd64 Packages [246 kB]
Get:7 http://archive.ubuntu.com/ubuntu hirsute/universe amd64 Packages [16.4 MB]
Get:8 http://archive.ubuntu.com/ubuntu hirsute/main amd64 Packages [1780 kB]
Fetched 19.0 MB in 10s (1866 kB/s)
Reading package lists… Done
Building dependency tree
Reading state information… Done
10 packages can be upgraded. Run ‘apt list –upgradable’ to see them.
root@ubuntu21:/# apt install wget
Reading package lists… Done
Building dependency tree
Reading state information… Done
The following additional packages will be installed:
ca-certificates libpsl5 openssl publicsuffix
The following NEW packages will be installed:
ca-certificates libpsl5 openssl publicsuffix wget
0 upgraded, 5 newly installed, 0 to remove and 10 not upgraded.
Need to get 1282 kB of archives.
After this operation, 3110 kB of additional disk space will be used.
Do you want to continue? [Y/n] y
root@ubuntu21:/# wget -V
root@ubuntu21:/# wget –version

How to install wget on Ubuntu 21.04
How to download and install wget package on Ubuntu 21.04
Step 1. Log into Ubuntu server as sudo or root user
Step 2. You can download wget deb from packages.ubuntu.com/hirsute/amd64/wget/download
Step 3. Download wget deb package based on your Architecture
Step 4. Sync the file to server using rsync or scp
Step 4. Install dependencies and then install wget using ‘dpkg -i’ command
Step 5. You can also install wget using apt command
# apt install ./wget_1.20.3-1ubuntu1_amd64.deb
OR
dpkg -i wget_1.20.3-1ubuntu1_amd64.deb
Steps to remove / Uninstall wget package on Ubuntu 21.04
Step 1. Log into Ubuntu server as sudo or root user
Step 2. Run ‘apt remove wget’ to uninstall wget
Step 3. Enter y and press enter, if apt ask for confirmation while removing