Install wget on a Linux system using the appropriate package manager (yum or apt). (Provide the command used)

To install wget on a Linux system, use the appropriate package manager based on your distribution:

1. Debian/Ubuntu (APT - apt-get)

bash

Copy

sudo apt-get update && sudo apt-get install wget -y
  • sudo apt-get update → Updates the package list.

  • sudo apt-get install wget -y → Installs wget automatically (-y skips confirmation).

  • Verify Installation

    After installation, check if wget works:

    bash

    Copy

      wget --version
    

    Expected output:

    Copy

      GNU Wget 1.21.x ...
    

    Key Notes

    • Use sudo for admin privileges.

    • -y avoids manual confirmation (useful in scripts).

0
Subscribe to my newsletter

Read articles from Ravi Vishwakarma directly inside your inbox. Subscribe to the newsletter, and don't miss out.

Written by

Ravi Vishwakarma
Ravi Vishwakarma