How to install curl on FreeBSD using pkg command

The curl command is a tool to download or transfer files/data from or to a server using FTP, HTTP, HTTPS, SCP, SFTP, SMB, and other supported protocols on FreeBSD, Linux, or Unix-like system.

You can install curl on FreeBSD using the pkg command as follows:

# pkg install curl

This will download and install the latest version of curl package from the configured package repository.

  1. Open the terminal application and then type the following BSD commands.
  2. For remote FreeBSD server use the ssh command: ssh vivek@freebsd-ec2-server-ip
  3. Update system, run: sudo pkg update && sudo pkg upgrade
  4. Install curl on Debian, execute: sudo pkg install curl
  5. Test curl CLI

Leave a Comment