How to get pkg to recognize local repository?
mueller6722 at twc.com
Mon Jul 17 05:11:13 UTC 2017
How do I get pkg to recognize a local repository such as /mnt/usr/packages/All, or does pkg only recognize remote repositories?
In this case, /mnt was a mount point for another FreeBSD 11.1-PRERELEASE installation from the same svn revision. Second was installed from the first using NFS.
Even env PACKAGEPATH=/mnt/usr/packages/All pkg-static install pkg didn't work.
pkg-static: Ignoring bad configuration entry in /usr/local/etc/pkg/repos/mytemprepo.conf: "file:///mnt/usr/packages/All"
pkg-static: Warning: Major OS version upgrade detected. Running "pkg-static install -f pkg" recommended
No active remote repositories configured.
What is the proper URL or format for a file name/directory? Is it necessary to precede with URL: or what do I have to do to make it look like a repository? I have been unable to get anything to work.
While it would be easier to just build the packages again, I would like to know how to install from one computer or installation to another without recompiling.
More information about the freebsd-ports