[Bug 218159] ports-mgmt/pkg: pkg -r fails to run post install script.

bugzilla-noreply at freebsd.org bugzilla-noreply at freebsd.org
Mon May 11 19:44:43 UTC 2020


https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=218159

--- Comment #6 from Jeff Kletsky <jeff+freebsd at wagsky.com> ---
(In reply to Jeff Kletsky from comment #4)

WORK AROUND
===========

sudo zfs create zroot-js-front-2020-05/var/jail/pkg-c

cd /var/jail/pkg-c/
sudo tar xf ~/FreeBSD/12.1/base.txz

sudo freebsd-update -b /var/jail/pkg-c/ fetch
sudo freebsd-update -b /var/jail/pkg-c/ install
env ROOT=/var/jail/pkg-c /var/jail/pkg-c/bin/freebsd-version

# If devfs is not already mounted in the chroot

sudo mount -t devfs devfs /var/jail/pkg-c/dev/

# pkg [-C <configuration file>] [-R <repository configuration directory>]
# may be helpful if the jail's pkg/repo configuration is different than the
host's

sudo env NAMESERVER=<nameserver IP> pkg -c /var/jail/pkg-c update
sudo env NAMESERVER=<nameserver IP> pkg -c /var/jail/pkg-c install php74

sudo umount /var/jail/pkg-c/dev

-- 
You are receiving this mail because:
You are the assignee for the bug.


More information about the freebsd-pkg mailing list