How to install wget on FreeBSD 9.0

To use the GNU Wget command on FreeBSD 9.0, you have to install it first. You can install it either from ports, or from the internet.

Use only one of the two methods listed above. I recommend the pkg_add one because it’s much faster:

1. Installing Wget using pkg_add (as root)

# pkg_add -r wget
# rehash

2. Installing Wget from ports (as root):

First, you need to update the ports:
# portsnap fetch update

After the ports have been updated succesfully, you can start installing wget:
# which wget
/usr/ports/ftp/wget
# cd /usr/ports/ftp/wget
# make install clean
# rehash

And now, let’s verify if it has been installed succesfully (with pkg_info):
# pkg_info | grep wget
wget-1.13.4_1 Retrieve files from the Net via HTTP(S) and FTP

The pkg_info tool displays only the installed packages.

Share and Enjoy

  • Twitter
  • Facebook
  • Google Plus
  • Email
  • RSS
Tagged with: , , , , ,
Posted in The Linux and Unix Articles!

Leave a Reply

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

*

Subscribe

  

Subscribe to get the latest Linux news and how to guides directly on your e-mail!