wiki:PortsToPkg

FreeBSD - Migrating from Source Ports to Binary Pkg

pkg info -aqo > packages

You may want to edit packages.

Before you whack things, it would be prudent to have a spare pkg-static on hand.

rsync -vlpPtgoHx /usr/local/sbin/pkg-static /root

Now do the dirty.

pkg delete -a
pkg install `cat packages`

And fix /etc/crontab to have

pkg version -vRl"<"

If you get errors such as size mismatch, fetching from remote, then try

pkg clean
rm -rf /var/cache/pkg/*
pkg update -f
Last modified 20 months ago Last modified on May 28, 2018, 2:07:28 AM