FreeBSD Install wget Utility To Download Files From Internet

How do I install wget the non-interactive network downloader under FreeBSD operating systems? How do I install wget on FreeBSD 8.x/9.x/10.x/11.x/12.x?

You can use any one of the following method to install GNU Wget non-interactive program on a FreeBSD operating system. The wget used to download files from the Internet. It supports HTTP, HTTPS, and FTP protocols, as well as retrieval through HTTP proxies with username and password support.

How to install wget on FreeBSD

  1. Open a terminal window.
  2. Log in to remote FreeBSD server using ssh:
    ssh user@freebsd-ec2-host-ip
  3. To add the package on FreeBSD, run:
    pkg install wget
  4. To add the FreeBSD ports, run:
    cd /usr/ports/ftp/wget/ && make install clean

Let us see all commands and configs in details.

Install wget Using pkg_add (Binary method) Command

Run the following pkg command on the latest version of FreeBSD:
$ sudo pkg update
$ sudo pkg install wget

Type the following command as root user for older version of FreeBSD v8.x or older:
# pkg_add -r -v wget
# rehash

Install wget Using FreeBSD Ports Collection

Type the following command as root user to upgrade ports tree, enter:
# portsnap fetch update
Now, install the wget, enter:
# cd /usr/ports/ftp/wget
# make install clean
# rehash

How do I use wget command on FreeBSD?

You can use the wget command as follows:
$ wget
$ wget
$ wget

For more info see “Linux wget: Your Ultimate Command Line Downloader.

How do I resume file downloads on wget?

The syntax is:
wget -c url
wget --continue url


This page demonstrated how to install the wget command on a FreeBSD based operating system using both binary pkg and ports methods. GNU/wget is easy and can be used from your shell scripts, cron jobs, terminals without GUI or X-Windows support, and more. GNU wget has many features to make retrieving large files or mirroring
entire web or FTP sites easy. For more info see GNU/wget homepage here.

This entry is 1 of 5 in the Linux/Unix install wget Tutorial series. Keep reading the rest of the series:

  1. Freebsd Install wget Utility To Download Files From The Internet
  2. How to install wget on RHEL 8 using the dnf command
  3. How to install wget on a Debian or Ubuntu Linux
  4. How to install wget on RHEL/CentOS 7 using yum
  5. Mac OS X Sierra Install wget Network Downloader Utility

Posted by: SXI ADMIN

The author is the creator of SXI LLC and a seasoned sysadmin, DevOps engineer, and a trainer for the Linux operating system/Unix shell scripting. Get the latest tutorials on SysAdmin, Linux/Unix and open source topics via RSS/XML feed or weekly email newsletter.

Leave a Reply

Your email address will not be published. Required fields are marked *

Previous Post

How to Make Website WCAG Compliant?

Next Post

Link download Kali Linux 2020.1 (ISO + Torrent)

Related Posts