The wget command allows you to rename files prior to downloading them on your computer.įor instance, you may want to install Terraform. To download a file and save it under a specified name run: wget -O To download a file from the web use: wget įor example, to install Tomcat 9, first you need to download the package with wget using the command: wget Download File and Save Under Specific Name wget Command Examples Download File from Web is the address of the file or directory you wish to download. This attribute specifies what to do with the URL that follows. The wget syntax has the following pattern: wget Įach has its long and short form which are conveniently interchangeable.
To install and configure wget for Windows:
To install wget on CentOS or Fedora, type the following command: sudo yum install wget How to Install wget on Windows?
To install wget on Ubuntu or Debian releases, use the command: sudo apt-get install wget How to Install wget on CentOS/Fedora? Below you will find the installation instructions for Ubuntu/Debian, CentOS, and Windows. If the output displays wget command not found you need to download and install the tool manually.