# 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 ```