from wiki

This commit is contained in:
Randy Bush 2020-07-04 15:35:45 -07:00
parent d9839a0736
commit 9aae51fadd

34
pages/PortsToPkg.md Normal file
View file

@ -0,0 +1,34 @@
# 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
```