[FreeBSD] Using the ports collection

Posted by on March 27, 2014 in FreeBSD, Tech

要約:
Using the ports collection

Initial process

To download a compressed snapshot into /var/db/portsnap

To extract the snapshot into /usr/ports

After the first steps shown above, /usr/ports can be updated by running

Cron setting

To keep a ports tree latest, it is recommended to set cron jobs.

"portsnap cron" executes "portsnap fetch" after random (from 1 to 3600) seconds.

pkg installation

pkg is a package control system that was introduced to FreeBSD 10.0.
pkg makes binary package control very convenient.
When the first time you execute pkg command, pkg will be installed automatically.