Last night was the first time I've ever built a FreeBSD desktop from ground up using pkg instead of ports.
I taught myself to use ports when I didn't care for the PC-BSD .pbi Push Button Installer sometime after joining in 2005. Since then I've only used pkg a handful of times on the rare occasion to get a program like
graphics/gimp running that I use often. So this was a new experience for me.
I didn't want to stress my IBM Thinkpad T43 compiling ports so thought it best pkg used this time. However, I still downloaded a snapshot of the ports tree so I could maintain full control. When I ran
# pkg audit -F
it bootstrapped like it says you can do in
the Handbook by issuing
# /usr/sbin/pkg
.
From then on it could not have been automated in a more orderly manner or easier to install every program I usually install by ports and a lot quicker. The only difference being I couldn't set options like to have
security/nmap scan for ports as part of
# rkhunter --checkall
when installing
security/rkhunter by pkg.
I checked
# pkg audit -F
one final time before exiting the root terminal and invoking
$ startx
for the first time. It showed pkg had willingly installed a vulnerable version of
graphics/jasper, and we can't have that:
# cd /usr/ports/graphics/jasper
# make deinstall clean
# make install clean
So I fixed it using ports, it's still running and all is well.
What took longest was configuring of system files, programs and the desktop like I wanted it. Not installation of the base system or 3rd party programs.