[Bug 264264] pkg-static should support --repo-conf-dir

From: <bugzilla-noreply_at_freebsd.org>
Date: Thu, 26 May 2022 21:08:32 UTC
https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=264264

            Bug ID: 264264
           Summary: pkg-static should support --repo-conf-dir
           Product: Base System
           Version: CURRENT
          Hardware: Any
                OS: Any
            Status: New
          Severity: Affects Only Me
          Priority: ---
         Component: bin
          Assignee: bugs@FreeBSD.org
          Reporter: asomers@FreeBSD.org

The full pkg command supports a -R or --repo-conf-dir option to read its repos
from a non-standard location.  However, pkg-static does not.  If it did, then
you could easily boostrap pkg from the DVD installation media, like this:

pkg --repo-conf-dir /dist/packages/repos -r FreeBSD_install_cdrom bootstrap

or

pkg --repo-conf-dir /dist/packages/repos -r FreeBSD_install_cdrom add
/dist/packages/*amd64/All/pkg-*.pkg

But since it does not, the only way to bootstrap pkg from the DVD is to copy
that config file to /etc/pkg.

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