Skip to content

Instantly share code, notes, and snippets.

@mekanix
Created May 17, 2021 07:09
Show Gist options
  • Save mekanix/bea2b8579c77b14e84f2f2d5f63b70b4 to your computer and use it in GitHub Desktop.
Save mekanix/bea2b8579c77b14e84f2f2d5f63b70b4 to your computer and use it in GitHub Desktop.
FreeBSD pkg install as user
mkdir /tmp/pkgdb; xzcat /var/backups/pkg.sql.xz | sqlite3 -bail /tmp/pkgdb/local.sqlite; env INSTALL_AS_USER=1 PKG_DBDIR=/tmp/pkgdb pkg info -r libXft
env INSTALL_AS_USER=1 PKG_DBDIR=/tmp/pkgdb pkg info
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment