I use a jail to build packages from the ports tree (using ports-mgmt/portmaster) which I then install on the host. When updating my ports/packages I first do the usual in the jail:
[cmd=jail#]portsnap fetch update[/cmd][cmd=jail#]portmaster --no-term-title -g -a[/cmd]
But when I wish to install the updated packages on the host I have to look at the list of rebuilt ports (which portmaster gives me) and then do the following for each of them:
[cmd=jail#]portsnap fetch update[/cmd][cmd=jail#]portmaster --no-term-title -g -a[/cmd]
But when I wish to install the updated packages on the host I have to look at the list of rebuilt ports (which portmaster gives me) and then do the following for each of them:
- Check /var/db/pkg to see whether it's installed in the first place (because I build packages, build-only dependencies exist in the jail but are not installed on the host).
- [cmd=host#]pkg_delete -f some_port-old.version[/cmd]
- [cmd=host#]pkg_add some_port-new.version.tbz[/cmd]
- [cmd=host#]rm /jail/usr/ports/packages/All/some_port-old.version.tbz[/cmd]