bash: wget: command not found
How do I solve this problem? How can I install wget tool on a Debian Linux home server?
The GNU Wget is a free and open source tool for non-interactive download of files from the Web. It supports HTTP, HTTPS, and FTP protocols, as well as retrieval through HTTP proxies and much more. Let us see how to search for a package named wget to retrieves files from the web and install the same on your server.
Installing wget on a Debian Linux
You need to use the apt-get command/apt command to install any package including wget. You can search for package name using the apt-cache command. The syntax is:
$ apt-cache search {package}
$ apt-cache search wget
$ apt-cache search wget | grep wget
$ apt search wget
Sample outputs:
The second last result indicate that the package name is wget. To install wget package use the following syntax:
$ sudo apt-get install {package-name-here}
OR directly run as root user:
# apt-get install {package-name-here}
For example, install wget using the apt-get command/apt command command line as follows:
$ sudo apt install wget
OR
$ sudo apt-get install wget
Sample outputs:
How to use wget command
Once installed you can grab or download file using the following syntax
wget http://url/file
wget ftp://domain/file.tar.gz
See the following wget command related tutorials for more info:
what a dump fuck !!!!!
So you were born with all knowledge and you have never once needed to seek information??? Be nice to new users.
Is there any bad thing about using apt install and apt search instead of apt-get and apt-cache? As I understand it, apt search is newer and also has a nicer more colorful output :)
I updated the faq.