Install rsync in freebsd from source

On the server, i want to install rsync have no ports as it was older version FreeBSD 5.4 and is not supported, so install rsync from source.

http://www.samba.org/ftp/rsync/

After install, you need to run rehash command

See FreeBSD

Installing Software in FreeBSD with pkg

pkg command is used to install software in FreeBSD.

To update package repo, run

Example

To install postfix mail server, run

To auto start postfix, you need to run

You can also add postfix_enable=”YES” to /etc/rc.conf manually.

Finding Software

To find package that provides a software, you can run

Example

Delete a software

Upgrade all installed software