Bug 264264 - pkg-static should support --repo-conf-dir
Summary: pkg-static should support --repo-conf-dir
Status: New
Alias: None
Product: Base System
Classification: Unclassified
Component: bin (show other bugs)
Version: CURRENT
Hardware: Any Any
: --- Affects Only Me
Assignee: freebsd-bugs (Nobody)
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2022-05-26 21:08 UTC by Alan Somers
Modified: 2022-05-30 19:49 UTC (History)
1 user (show)

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Alan Somers freebsd_committer freebsd_triage 2022-05-26 21:08:32 UTC
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.