complex issue with pkg poudriere and ports

Anton Yuzhaninov citrin+bsd at
Wed Nov 6 21:49:34 UTC 2019

On 2019-11-04 12:08, tech-lists wrote:
 > 1. how to exclude these local ports from pkg upgrade

You can lock a package and it will prevent it upgrade by pkg, e. g.

pkg lock foo

 > 2. how to scan just these local ports and with what tool, to make sure they
 > are up-to date?

You can compare version of locally installed package with version in a ports 
index, but this will include all packages, including ones installed from 
binary packages:

make -C /usr/ports fetchindex
pkg version --index -IvL=

3. how to upgrade just these local ports?
There are several tools, I personally use portmaster, e. g.:

portsnap fetch update # to update /usr/ports
pkg unlock foo
portmaster foo
pkg lock foo # to prevent reinstall/upgrade by pkg upgrade

More information about the freebsd-questions mailing list