Skip site navigation (1)Skip section navigation (2)
Date:      Wed, 18 Sep 2024 14:21:11 +0000
From:      bugzilla-noreply@freebsd.org
To:        bugs@FreeBSD.org
Subject:   [Bug 281570] What's reponame? (and what's pkg-name?) Missing explanation
Message-ID:  <bug-281570-227-bIQO0JDlxd@https.bugs.freebsd.org/bugzilla/>
In-Reply-To: <bug-281570-227@https.bugs.freebsd.org/bugzilla/>

index | next in thread | previous in thread | raw e-mail

https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=281570

Muhammad Moinur Rahman <bofh@freebsd.org> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |bofh@freebsd.org

--- Comment #1 from Muhammad Moinur Rahman <bofh@freebsd.org> ---
`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.

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

home | help

Want to link to this message? Use this
URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?bug-281570-227-bIQO0JDlxd>