Install custom freebsd pkg on NFSN
Optional: Use newer version
pkg -o INSTALL_AS_USER=true -o RUN_SCRIPTS=false --rootdir ~/protected/writefreely2 install writefreely
From < https://forums.freebsd.org/threads/install-a-package-on-a-folder.83829/ >
These options don't exist on NFSN pkg, and aren't mentioned at https://man.freebsd.org/cgi/man.cgi?query=pkg-install
It is also theoretically possible to go to https:// pkg .freebsd.org/FreeBSD:11:amd64/ and get the binaries for the package you want, then unpack them somewhere in your local tree. The jury is probably out on whether that's a good idea. Depending on the number of dependencies involved that we do or don't have, that could get out of hand fast.
From < https://members.nearlyfreespeech.net/forums/viewtopic.php?t=10170&highlight=pkg+install >
you should be able to install it locally. I.e., by extracting their freebsd-arm64 build somewhere into your /home/private or so and adding it to your PATH.
Seems to work fine for me:
> cd /home/private
> wget https://github.com/git-lfs/git-lfs/releases/download/v3.2.0/git-lfs-freebsd-amd64-v3.2.0.tar.gz
> tar -xzvf git-lfs-freebsd-amd64-v3.2.0.tar.gz
> export PATH=/home/private/git-lfs-3.2.0/:$PATH
> git lfs
git-lfs/3.2.0 (GitHub; freebsd amd64; go 1.18.2)
git lfs <command> [<args>]
...
From < https://members.nearlyfreespeech.net/forums/viewtopic.php?t=11274&highlight=pkg+install >