from wiki
This commit is contained in:
parent
d9839a0736
commit
9aae51fadd
1 changed files with 34 additions and 0 deletions
34
pages/PortsToPkg.md
Normal file
34
pages/PortsToPkg.md
Normal 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
|
||||
```
|
||||
Loading…
Add table
Add a link
Reference in a new issue