Bug 281570 - What's reponame? (and what's pkg-name?) Missing explanation
Summary: What's reponame? (and what's pkg-name?) Missing explanation
Status: New
Alias: None
Product: Documentation
Classification: Unclassified
Component: Manual Pages (show other bugs)
Version: Latest
Hardware: Any Any
: --- Affects Many People
Assignee: freebsd-pkg (Nobody)
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2024-09-18 13:55 UTC by refodap835
Modified: 2024-09-19 04:03 UTC (History)
2 users (show)

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description refodap835 2024-09-18 13:55:14 UTC
Writing "pkg help fetch" I see the term reponame used, however this term is not explained while running "pkg help fetch", nor do I find this term in the manual page of pkg or if I search the FreeBSD documentaiton online.
Comment 1 Muhammad Moinur Rahman freebsd_committer freebsd_triage 2024-09-18 14:21:11 UTC
`pkg help fetch` mentions that it "Fetches packages from the given repo name if multiple repo support is enabled. See pkg.conf(5)."

So have you read `man 5 pkg.conf`

Although it's not exactly mentioned there either but reponame is the repository name you have configured in your <REPOSITORY>.conf file. If you are using the FreeBSD one by default it is `FreeBSD`.

This is what I get in my builder:
❯ grep -E '\:\s\{' /usr/local/etc/pkg/repos/*.conf /etc/pkg/*.conf | grep -v '#'
/usr/local/etc/pkg/repos/base.conf:base: {
/usr/local/etc/pkg/repos/FreeBSD.conf:FreeBSD: {
/usr/local/etc/pkg/repos/infrastructure.conf:infrastructure: {
/etc/pkg/FreeBSD.conf:FreeBSD: {

So in my case the repo names are base, FreeBSD and infrastructure. So as I have multiple pkg repos configured I can use `pkg -r <base|FreeBSD|infrastructure> <PKG SUBCOMMAND` to mention from which repo I want to install.
Comment 2 refodap835 2024-09-18 14:41:23 UTC
Thanks, however, I feel it could be more clearly and explicitly stated in "pkg help fetch" and (potentially also in "man pkg.conf"). Right now it's a bit confusing(In reply to Muhammad Moinur Rahman from comment #1)