This was a small surprise the other evening. Typing 'pkg install some-thing' reported an error that an 'advisory lock' was held by another process. Checked the process list and found that cron was running a nightly housekeeping script on pkg. After a few minutes had passed, the cron job finished and I was able to resume installing / upgrading packages.
You can see the housekeeping scripts here:
/usr/local/etc/periodic/daily/411.pkg-backup
/usr/local/etc/periodic/daily/490.status-pkg-changes
Good to know the base system does this for you!
You can see the housekeeping scripts here:
/usr/local/etc/periodic/daily/411.pkg-backup
/usr/local/etc/periodic/daily/490.status-pkg-changes
Good to know the base system does this for you!