Stack Exchange Network

Stack Exchange network consists of 183 Q&A communities including Stack Overflow , the largest, most trusted online community for developers to learn, share their knowledge, and build their careers. Visit Stack Exchange

Unix & Linux Stack Exchange is a question and answer site for users of Linux, FreeBSD and other Un*x-like operating systems. It only takes a minute to sign up.

Sign up to join this community

Teams

Q&A for work

Connect and share knowledge within a single location that is structured and easy to search.

Learn more about Teams

I'm trying to install portmaster on FreeBSD but I get an error about the port format:

root@freebsd:/usr/ports/ports-mgmt/portmaster # make install clean
===>  portmaster-3.17.8_1 pkg(8) must be version 1.6.0 or greater, but you
have 1.4.12. You must upgrade the ports-mgmt/pkg port first.
*** Error code 1
Stop.
make: stopped in /usr/ports/ports-mgmt/portmaster

How can I upgrade the port file to the latest version?