The wget
utility is not installed by default in FreeBSD, but it can be easily installed using the pkg
package manager.
To install wget
, follow these steps:
- Open a terminal or login to the FreeBSD system.
- Type the following command as the root user to update the package repository:
# pkg update
- Type the following command to install
wget
:# pkg install wget
- Once the installation is complete, you can use
wget
to download files from the internet.For example, to download a file named
example.tar.gz
from a website, you can use the following command:$ wget http://example.com/example.tar.gz
This will download the file to the current directory.